Maximum number of tasks in sequencer not triggering an error #52
Labels
bug
Something isn't working
internal bug tracker
Issue confirmed and reported into a ticket in the internal bug tracking system
lorawan
LoraWAN-related issue or pull-request.
mw
Middleware-related issue or pull-request.
Setup:
Bug:
Preprocessor error is not triggered if the
CFG_SEQ_Task_NBR
is > 32 although there is a code to protect itIt happens because the
#define UTIL_SEQ_CONF_TASK_NBR CFG_SEQ_Task_NBR
is evaluated by preprocessor to zero. It doesn't know the value ofCFG_SEQ_Task_NBR
at this stage. Try to add-Wundef
flag and see the compiler outputNext when there is a preprocessor macro
#if UTIL_SEQ_CONF_TASK_NBR > 32
we copmare0 > 32
Also there is a typo in the error message: UTIL_SEQ_CONF_TASK_NBR must be less of equal then 32
The text was updated successfully, but these errors were encountered: