mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 01:21:20 -04:00
monch
This commit is contained in:
@@ -147,8 +147,8 @@ function handleSensorEvent({ roverId, sensors, batteryState }) {
|
||||
});
|
||||
}
|
||||
|
||||
// const waitingHalfOrMore = waitingPercent != null && waitingPercent >= 0.5;
|
||||
const waitingHalfOrMore = true;
|
||||
const waitingHalfOrMore = waitingPercent != null && waitingPercent >= 0.01;
|
||||
// const waitingHalfOrMore = true;
|
||||
const shouldUnlock = state.batteryLocked && waitingLongEnough && waitingHalfOrMore;
|
||||
|
||||
if (shouldUnlock) {
|
||||
|
||||
Reference in New Issue
Block a user