From eeb9de7eb3f462618e7d51ca90d1c0ea800eaaae Mon Sep 17 00:00:00 2001 From: Lasse Rosenow Date: Wed, 16 Oct 2024 14:48:40 +0200 Subject: [PATCH] fixup! Add riot os blinky example Adjust to changes in main --- examples/riot/src/blinky/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/riot/src/blinky/main.c b/examples/riot/src/blinky/main.c index 29ddcee2..e50bfe0c 100755 --- a/examples/riot/src/blinky/main.c +++ b/examples/riot/src/blinky/main.c @@ -20,7 +20,8 @@ struct MyReactor { void timer_handler(Reaction *_self) { LED0_TOGGLE; - printf("Hello World @ %u\n", (uint32_t)_self->parent->env->current_tag.time); + Environment *env = _self->parent->env; + printf("Hello World @ %lld\n", env->get_elapsed_physical_time(env)); } void MyReaction_ctor(MyReaction *self, Reactor *parent) {