mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-17 01:50:47 -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 = waitingPercent != null && waitingPercent >= 0.01;
|
||||||
const waitingHalfOrMore = true;
|
// const waitingHalfOrMore = true;
|
||||||
const shouldUnlock = state.batteryLocked && waitingLongEnough && waitingHalfOrMore;
|
const shouldUnlock = state.batteryLocked && waitingLongEnough && waitingHalfOrMore;
|
||||||
|
|
||||||
if (shouldUnlock) {
|
if (shouldUnlock) {
|
||||||
|
|||||||
Reference in New Issue
Block a user