up
This commit is contained in:
@@ -163,6 +163,12 @@ func (c *Client) pollLoop() {
|
||||
// Mark as connected
|
||||
status.Connected = true
|
||||
|
||||
// Check if device is actually alive
|
||||
// If all frequencies are 0, device is probably off
|
||||
if status.FreqA == 0 && status.FreqB == 0 && status.PowerForward == 0 {
|
||||
status.Connected = false
|
||||
}
|
||||
|
||||
// Peak hold logic - keep highest power for 1 second
|
||||
now := time.Now()
|
||||
if c.lastStatus != nil {
|
||||
|
||||
Reference in New Issue
Block a user