Skip to content

Commit

Permalink
(temporarily) change brushless checkbox in UI to read-only (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrudd2 authored Dec 27, 2024
1 parent f63573e commit 06880f6
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/ui.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -475,20 +475,10 @@ function PenHeight({ state, driver }: { state: State; driver: Driver }) {
}

function HardwareOptions({ state }: { state: State }) {
const dispatch = useContext(DispatchContext);
const setHardware = (hardware: string) => dispatch({
type: "SET_PLAN_OPTION",
value: { hardware }
});
return <div>
<label className="flex-checkbox" title="Use brushless upgrade kit pin and power settings">
<input
type="checkbox"
checked={state.planOptions.hardware === 'brushless'}
onChange={(e) => setHardware(e.target.checked ? 'brushless' : 'v3')}
/>
brushless
</label>
<div title="Motor type (affects pin and power settings)">
motor: {state.planOptions.hardware}
</div>
</div>;
}

Expand Down

0 comments on commit 06880f6

Please sign in to comment.