Skip to content

Commit

Permalink
#209 Fix "move cover to angle" button in UI
Browse files Browse the repository at this point in the history
  • Loading branch information
dostuffthatmatters committed Jan 5, 2024
1 parent 34d64ba commit 77dcf60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ui/src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/ui/src/tabs/control-tab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default function ControlTab() {
async function moveCover(angle: number) {
if (angle === 0 || (angle >= 110 && angle <= 250)) {
await runPLCCommand(
['set-cover-angle'],
['set-cover-angle', `${angle}`],
'moving cover',
'successfully moved cover',
() => {
Expand Down

0 comments on commit 77dcf60

Please sign in to comment.