Skip to content

Commit

Permalink
tweak: wait 10 mins before assuming Arduino is dead
Browse files Browse the repository at this point in the history
  • Loading branch information
mewejo authored May 14, 2023
1 parent 8092377 commit 4c1772c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app/arduino.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (app *App) monitorArduinoHeartbeat() (<-chan bool, chan bool) {
continue
}

cutOff := time.Now().Add(-time.Minute)
cutOff := time.Now().Add(-time.Minute * 10)

if app.arduino.LastHeartbeat.Time.Before(cutOff) {
deadArduino <- true
Expand Down

0 comments on commit 4c1772c

Please sign in to comment.