diff --git a/src/features/dsp408/dsp408.ts b/src/features/dsp408/dsp408.ts index 3004401..363a089 100644 --- a/src/features/dsp408/dsp408.ts +++ b/src/features/dsp408/dsp408.ts @@ -161,7 +161,7 @@ export function forDSP408(dsp: DSP408, setDsps: SetDsps, notify: NotifyFn) { return; } - let r = await invoke('unlock_device', { id: dsp.id, password }); + await invoke('unlock_device', { id: dsp.id, password }); state = await updateDSPState(); @@ -213,6 +213,8 @@ export function forDSP408(dsp: DSP408, setDsps: SetDsps, notify: NotifyFn) { await invoke('disconnect_dsp408', { id: dsp.id }); }); + await updateDSPState(); + updateDSP(setDsps, dsp.id, (d) => ({ ...d, pollingPaused: true,