diff --git a/ui/DebugCommands.tsx b/ui/DebugCommands.tsx index 46083ba..e1fb406 100644 --- a/ui/DebugCommands.tsx +++ b/ui/DebugCommands.tsx @@ -2,7 +2,6 @@ import { useAtomValue } from "jotai"; import { useState } from "react"; import { DEBUG_COMMANDS } from "./pad-coms"; import { selectedStage$ } from "./state.ts"; -import { RGB } from "../sdk/utils.ts"; const cmds = Array.from(Object.entries(DEBUG_COMMANDS)); @@ -13,13 +12,7 @@ export function DebugCommands() { selectedCommand && stage ? async () => { const cmd = DEBUG_COMMANDS[selectedCommand]; - if (cmd === "setLightStrip") { - // TODO: We don't even expose this to the dropdown, but this seemed - // like the easiest fix for now. - await stage[cmd](new RGB(0, 0, 255)); - } else { - await stage[cmd](); - } + await stage[cmd](); } : undefined; return ( diff --git a/ui/pad-coms.ts b/ui/pad-coms.ts index 91500b2..56ab685 100644 --- a/ui/pad-coms.ts +++ b/ui/pad-coms.ts @@ -52,10 +52,10 @@ type FunctionKeys = keyof { }; /** anything here will appear in the debug UI to dispatch at will */ -export const DEBUG_COMMANDS: Record> = { +export const DEBUG_COMMANDS = { requestConfig: "updateConfig", writeConfig: "writeConfig", requestTestData: "updateTestData", forceRecalibration: "forceRecalibration", factoryReset: "factoryReset", -}; +} as const satisfies Record>;