Make deadline msg somewhat clearer and add comment

This commit is contained in:
Midgard 2021-02-01 18:13:23 +01:00
parent dc3299f5f8
commit fea2d19e94
Signed by: midgard
GPG key ID: 511C112F1331BBB4

View file

@ -136,8 +136,9 @@ bool loopPuzzle(obus_can::message* message, void (*callback_game_start)(uint8_t
blink_error(F("E CAN error"));
}
// Force the user of the library to periodically call loop
if (next_loop_call_deadline != 0 && millis() > next_loop_call_deadline) {
blink_error(F("E missed deadline"));
blink_error(F("E Missed loop deadline"));
}
next_loop_call_deadline = millis() + MAX_TIME_BETWEEN_CALLS;