Skip to content

Commit

Permalink
Zephyr fixes + cannot return from a do-while
Browse files Browse the repository at this point in the history
  • Loading branch information
erlingrj committed Nov 6, 2024
1 parent dc7a220 commit 50cab6f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ static struct gpio_callback button_cb_data;
static const struct gpio_dt_spec led = GPIO_DT_SPEC_GET(LED0_NODE, gpios);

DEFINE_ACTION_STRUCT(Action1, PHYSICAL_ACTION, 1, 0, 2, bool)
DEFINE_ACTION_CTOR_FIXED(Action1, PHYSICAL_ACTION, MSEC(0), 1, 0, 2, bool)
DEFINE_ACTION_CTOR(Action1, PHYSICAL_ACTION, MSEC(0), 1, 0, 2, bool)
DEFINE_REACTION_STRUCT(Sender, 0, 1)
DEFINE_OUTPUT_PORT_STRUCT(Out, 1, 2)
DEFINE_OUTPUT_PORT_CTOR(Out, 1)
Expand Down
1 change: 0 additions & 1 deletion include/reactor-uc/macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
if (ret == LF_FATAL) { \
throw("no memory in action!"); \
} \
ret; \
} while (0)

#define lf_schedule_without_val(action, offset) \
Expand Down

0 comments on commit 50cab6f

Please sign in to comment.