@ -239,10 +244,10 @@ func reconnect(opts *Options, dev *device.Device1) {
amtDisconnects=0
}
// If less than 3 seconds have past and more than 6
// If less than 3 seconds have passed and more than 6
// disconnects have occurred, remove the device and reset
ifsecsSince<=3&&amtDisconnects>=6{
defaultAdapter.RemoveDevice(dev.Path())
opts.Logger.Warn().Msg("At least 6 disconnects have occurred in the last three seconds. If this continues, try removing the InfiniTime device from bluetooth.")
lastDisconnect=time.Unix(0,0)
amtDisconnects=0
}
@ -254,7 +259,7 @@ func reconnect(opts *Options, dev *device.Device1) {
fori:=0;i<6;i++{
// If three tries failed, remove device
ifi==3{
defaultAdapter.RemoveDevice(dev.Path())
opts.Logger.Warn().Msg("Multiple connection attempts have failed. If this continues, try removing the InfiniTime device from bluetooth.")