From 4c1772ca80d1f78a7a0a5d19898c01c262d5e58c Mon Sep 17 00:00:00 2001 From: Josh Bonfield Date: Sun, 14 May 2023 15:01:41 +0000 Subject: [PATCH] tweak: wait 10 mins before assuming Arduino is dead --- pkg/app/arduino.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/app/arduino.go b/pkg/app/arduino.go index e25fb09..a587cb1 100644 --- a/pkg/app/arduino.go +++ b/pkg/app/arduino.go @@ -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