Compare commits

..

1 Commits

Author SHA1 Message Date
Patrick Hofmann e624b19585
Merge df141d2200 into bde0a086ab 2025-07-06 16:42:25 +02:00
1 changed files with 2 additions and 3 deletions

View File

@ -234,10 +234,9 @@ func setDCRestoreState(state int) error {
return err
}
command := "RESTORE_MODE_OFF\n"
switch state {
case 1:
if state == 1 {
command = "RESTORE_MODE_ON\n"
case 2:
} else if state == 2 {
command = "RESTORE_MODE_LAST_STATE\n"
}
_, err = port.Write([]byte(command))