change dones for pw state

This commit is contained in:
bsaravanan783
2025-06-03 22:30:29 +05:30
parent 686328a688
commit 7cf2929264

View File

@@ -21,6 +21,12 @@ export function handleControllerStateUpdate(state: Record<string, any>) {
}
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) {
probeContacted.set(true);
}