fixed key
This commit is contained in:
@@ -625,7 +625,7 @@ class RotaryHandler(bbctrl.APIHandler):
|
|||||||
|
|
||||||
|
|
||||||
motors = config_data.get("motors")
|
motors = config_data.get("motors")
|
||||||
motors_backup = config_data.get("motors_backup", {})
|
motors_backup = config_data.get("motors-backup", {})
|
||||||
|
|
||||||
if not motors:
|
if not motors:
|
||||||
raise ValueError("Motors data not found in configuration")
|
raise ValueError("Motors data not found in configuration")
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
probeContacted,
|
probeContacted,
|
||||||
probingComplete,
|
probingComplete,
|
||||||
probingFailed,
|
probingFailed,
|
||||||
probingStarted
|
probingStarted,
|
||||||
} from "$lib/ControllerState";
|
} from "$lib/ControllerState";
|
||||||
import { numberWithUnit } from "$lib/RegexHelpers";
|
import { numberWithUnit } from "$lib/RegexHelpers";
|
||||||
import TextFieldWithOptions from "$components/TextFieldWithOptions.svelte";
|
import TextFieldWithOptions from "$components/TextFieldWithOptions.svelte";
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ export const probingFailed = writable(false);
|
|||||||
export const probingComplete = writable(false);
|
export const probingComplete = writable(false);
|
||||||
|
|
||||||
export function handleControllerStateUpdate(state: Record<string, any>) {
|
export function handleControllerStateUpdate(state: Record<string, any>) {
|
||||||
|
|
||||||
if (get(probingActive)) {
|
if (get(probingActive)) {
|
||||||
if (state.pw === 0) {
|
if (state.pw === 0) {
|
||||||
probeContacted.set(true);
|
probeContacted.set(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user