diff --git a/src/dsp/dspApi.ts b/src/dsp/dspApi.ts index 69dc6ef..2c9ead5 100644 --- a/src/dsp/dspApi.ts +++ b/src/dsp/dspApi.ts @@ -46,6 +46,7 @@ export async function restoreDSPs( }); return restored; } + export async function addDSP( setDsps: SetDsps, setSelected: React.Dispatch>, diff --git a/src/features/dsp408/dsp408.ts b/src/features/dsp408/dsp408.ts index fb68c5d..878cc65 100644 --- a/src/features/dsp408/dsp408.ts +++ b/src/features/dsp408/dsp408.ts @@ -118,7 +118,7 @@ export async function create(params: { ip: params.ip, port: params.port, deviceId: params.deviceId, - mode: params.demo ? DSPMode.Demo: DSPMode.Normal, + mode: params.demo, isConnecting: false, pollingPaused: true, state: snapshot.state,