diff options
Diffstat (limited to 'cpukit/score/src/coretodset.c')
-rw-r--r-- | cpukit/score/src/coretodset.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpukit/score/src/coretodset.c b/cpukit/score/src/coretodset.c index 9708ef9477..8b0928af60 100644 --- a/cpukit/score/src/coretodset.c +++ b/cpukit/score/src/coretodset.c @@ -25,6 +25,7 @@ void _TOD_Set_with_timestamp( const Timestamp_Control *tod ) { + uint32_t nanoseconds = _Timestamp_Get_nanoseconds( tod ); Watchdog_Interval seconds_next = _Timestamp_Get_seconds( tod ); Watchdog_Interval seconds_now; @@ -39,6 +40,7 @@ void _TOD_Set_with_timestamp( _Watchdog_Adjust_seconds( WATCHDOG_FORWARD, seconds_next - seconds_now ); _TOD.now = *tod; + _TOD.seconds_trigger = nanoseconds; _TOD.is_set = true; _TOD_Activate(); |