forked from FOSS/BangleApps
bthrm - Reset retry time for all causes but connection timeout
parent
e38c7832c6
commit
a142bfa5f2
|
@ -244,7 +244,10 @@
|
|||
log("Clearing timeout " + currentRetryTimeout);
|
||||
clearTimeout(currentRetryTimeout);
|
||||
currentRetryTimeout = undefined;
|
||||
if (resetTime) retryTime = initialRetryTime;
|
||||
}
|
||||
if (resetTime) {
|
||||
log("Resetting retry time");
|
||||
retryTime = initialRetryTime;
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -277,7 +280,7 @@
|
|||
log("Disconnect: " + reason);
|
||||
log("GATT", gatt);
|
||||
log("Characteristics", characteristics);
|
||||
clearRetryTimeout();
|
||||
clearRetryTimeout(reason != "Connection Timeout");
|
||||
supportedCharacteristics["0x2a37"].active = false;
|
||||
startFallback();
|
||||
blockInit = false;
|
||||
|
|
Loading…
Reference in New Issue