Ensure that the FS works after a reconnect

This commit is contained in:
2021-11-25 20:35:03 -08:00
parent b363a20a9d
commit 655af5c446
4 changed files with 24 additions and 4 deletions

View File

@@ -26,7 +26,11 @@ import (
"go.arsenm.dev/infinitime"
)
var firmwareUpdating = false
var (
firmwareUpdating = false
// The FS must be updated when the watch is reconnected
updateFS = false
)
func main() {
infinitime.Init()
@@ -61,6 +65,8 @@ func main() {
log.Error().Err(err).Msg("Error sending notification to InfiniTime")
}
}
updateFS = true
})
// Get firmware version