aboutsummaryrefslogtreecommitdiff
path: root/robot/errcatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'robot/errcatch.c')
-rw-r--r--robot/errcatch.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/robot/errcatch.c b/robot/errcatch.c
index 27026b5..3e62270 100644
--- a/robot/errcatch.c
+++ b/robot/errcatch.c
@@ -20,6 +20,7 @@ void w2_errcatch_display_error(uint8_t code) {
void w2_errcatch_error_beep(uint8_t code) {
if (code == W2_E_WARN_UNCAUGHT_ERROR) return;
+ if (code == W2_E_WARN_CYCLE_EXPIRED) return;
uint8_t severity = code & W2_E_TYPE_MASK;
if ((severity ^ W2_E_TYPE_CRIT) == 0) {
play("L70 O6 fRfRfRfRf");
@@ -48,6 +49,8 @@ void w2_errcatch_handle_error(w2_s_error *error) {
break;
case W2_E_WARN_BATTERY_LOW:
break;
+ case W2_E_WARN_CYCLE_EXPIRED:
+ break;
default: {
g_w2_error_uncaught = true;
#ifdef W2_SIM