Skip to content

Commit 0754ef6

Browse files
committed
(temporarily) change brushless checkbox in UI to read-only
1 parent f63573e commit 0754ef6

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

Diff for: src/ui.tsx

+3-13
Original file line numberDiff line numberDiff line change
@@ -475,20 +475,10 @@ function PenHeight({ state, driver }: { state: State; driver: Driver }) {
475475
}
476476

477477
function HardwareOptions({ state }: { state: State }) {
478-
const dispatch = useContext(DispatchContext);
479-
const setHardware = (hardware: string) => dispatch({
480-
type: "SET_PLAN_OPTION",
481-
value: { hardware }
482-
});
483478
return <div>
484-
<label className="flex-checkbox" title="Use brushless upgrade kit pin and power settings">
485-
<input
486-
type="checkbox"
487-
checked={state.planOptions.hardware === 'brushless'}
488-
onChange={(e) => setHardware(e.target.checked ? 'brushless' : 'v3')}
489-
/>
490-
brushless
491-
</label>
479+
<div title="Motor type (affects pin and power settings)">
480+
motor: {state.planOptions.hardware}
481+
</div>
492482
</div>;
493483
}
494484

0 commit comments

Comments
 (0)