Code refactoring for xiaomi source

This commit is contained in:
Alex X
2026-01-17 10:06:13 +03:00
parent 9a1eac8ef4
commit 425fcffbe1
5 changed files with 14 additions and 40 deletions
-4
View File
@@ -231,10 +231,6 @@ func (s *Session25) msgAckCounters() []byte {
}
func (s *Session25) handleCh1(cmd []byte) int {
// Channel 1 used for two-way audio. It's important:
// - answer on 0000 command with exact config response (can't set simple proto)
// - send 0012 command at start
// - respond on every 0008 command for smooth playback
switch cid := string(cmd[:2]); cid {
case "\x00\x00": // client start
return msgClientStart