Hi
I have the following:
SEGGER_RTT_printf(0, "midnight_tick: last: %u, now: %u\r\n", last, now);
SEGGER_RTT_printf(0, "midnight_tick: now: %u, last: %u\r\n", now, last);
This prints:
midnight_tick: last: 10957, now: 0
midnight_tick: now: 10957, last: 0
Note that the second argument is always printed as 0 but none of the args is 0. There is no concurrency involved, the arguments last and now dont change between the two calls.
Sorry, if I am missing something trivial ...
Kind regards
Peter
I have the following:
SEGGER_RTT_printf(0, "midnight_tick: last: %u, now: %u\r\n", last, now);
SEGGER_RTT_printf(0, "midnight_tick: now: %u, last: %u\r\n", now, last);
This prints:
midnight_tick: last: 10957, now: 0
midnight_tick: now: 10957, last: 0
Note that the second argument is always printed as 0 but none of the args is 0. There is no concurrency involved, the arguments last and now dont change between the two calls.
Sorry, if I am missing something trivial ...
Kind regards
Peter