Skip to content

Commit 2efe051

Browse files
committed
add battery monitoring
1 parent 3b4c14d commit 2efe051

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

control/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,9 +1043,9 @@ mod app {
10431043
});
10441044

10451045
// // Battery is under voltaged so we should die
1046-
// if battery_voltage < MIN_BATTERY_VOLTAGE {
1047-
// kill_self::spawn().ok();
1048-
// }
1046+
if battery_voltage < MIN_BATTERY_VOLTAGE {
1047+
kill_self::spawn().ok();
1048+
}
10491049

10501050
// TODO: Display robot status on display
10511051
}

0 commit comments

Comments
 (0)