change dones for pw state
This commit is contained in:
@@ -21,6 +21,12 @@ export function handleControllerStateUpdate(state: Record<string, any>) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (get(probingActive) && get(systemReady) && get(homeMachineComplete)) {
|
if (get(probingActive) && get(systemReady) && get(homeMachineComplete)) {
|
||||||
|
if (state.cycle === "idle" && !get(probingStarted)) {
|
||||||
|
probeContacted.set(false);
|
||||||
|
probingFailed.set(false);
|
||||||
|
probingComplete.set(false);
|
||||||
|
}
|
||||||
|
|
||||||
if (state.pw === 0) {
|
if (state.pw === 0) {
|
||||||
probeContacted.set(true);
|
probeContacted.set(true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user