summaryrefslogtreecommitdiffstats
path: root/c/src/librtems++/include/rtems++/rtemsEvent.h
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/librtems++/include/rtems++/rtemsEvent.h')
-rw-r--r--c/src/librtems++/include/rtems++/rtemsEvent.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/c/src/librtems++/include/rtems++/rtemsEvent.h b/c/src/librtems++/include/rtems++/rtemsEvent.h
index ea41d4919e..e35d802670 100644
--- a/c/src/librtems++/include/rtems++/rtemsEvent.h
+++ b/c/src/librtems++/include/rtems++/rtemsEvent.h
@@ -110,8 +110,8 @@ const rtems_status_code rtemsEvent::receive(const rtems_event_set event_in,
const Condition condition)
{
rtems_interval usecs =
- micro_secs && (micro_secs < _TOD_Microseconds_per_tick) ?
- _TOD_Microseconds_per_tick : micro_secs;
+ (micro_secs < rtems_configuration_get_microseconds_per_tick()) ?
+ rtems_configuration_get_microseconds_per_tick() : micro_secs;
set_status_code(rtems_event_receive(event_in,
wait | condition,
TOD_MICROSECONDS_TO_TICKS(usecs),