mirror of
https://github.com/nonoo/kappanhang.git
synced 2026-04-21 06:13:43 +00:00
Cleanup
This commit is contained in:
parent
48dc37504f
commit
13be2d47ee
3 changed files with 3 additions and 6 deletions
|
|
@ -207,9 +207,8 @@ func (s *controlStream) handleRead(r []byte) error {
|
|||
if bytes.Equal(r[48:51], []byte{0xff, 0xff, 0xff}) {
|
||||
if !s.serialAndAudioStreamOpened {
|
||||
return errors.New("auth failed, try rebooting the radio")
|
||||
} else {
|
||||
return errors.New("auth failed")
|
||||
}
|
||||
return errors.New("auth failed")
|
||||
}
|
||||
if bytes.Equal(r[48:51], []byte{0x00, 0x00, 0x00}) && r[64] == 0x01 {
|
||||
return errors.New("got radio disconnected")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue