aboutsummaryrefslogtreecommitdiff
path: root/robot
diff options
context:
space:
mode:
Diffstat (limited to 'robot')
-rw-r--r--robot/errcatch.c1
-rw-r--r--robot/io.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/robot/errcatch.c b/robot/errcatch.c
index 3e62270..b212e8b 100644
--- a/robot/errcatch.c
+++ b/robot/errcatch.c
@@ -21,6 +21,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;
+ if (code == W2_E_WARN_PING_TIMEOUT) return;
uint8_t severity = code & W2_E_TYPE_MASK;
if ((severity ^ W2_E_TYPE_CRIT) == 0) {
play("L70 O6 fRfRfRfRf");
diff --git a/robot/io.c b/robot/io.c
index 9977e2f..edf3092 100644
--- a/robot/io.c
+++ b/robot/io.c
@@ -53,7 +53,7 @@ void w2_io_battery_logic() {
if (g_w2_io_battery_percentage <= W2_BATTERY_PERCENTAGE_LOW &&
g_w2_target_area != W2_AREA_CHRG) {
w2_errcatch_throw(W2_E_WARN_BATTERY_LOW);
- g_w2_target_area = W2_AREA_CHRG;
+ // g_w2_target_area = W2_AREA_CHRG;
}
}