mirror of https://github.com/jetkvm/kvm.git
Compare commits
1 Commits
327655f2fc
...
e624b19585
Author | SHA1 | Date |
---|---|---|
|
e624b19585 |
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue