mirror of
https://github.com/OpenEPaperLink/OpenEPaperLink.git
synced 2026-03-21 05:06:39 +01:00
Fixed interrupted flashing bug
While the C6 would be flashed the recovery would trigger as no Ping was received from the RF-AP
This commit is contained in:
@@ -895,7 +895,7 @@ void APTask(void* parameter) {
|
||||
|
||||
uint8_t attempts = 0;
|
||||
while (1) {
|
||||
if (millis() - lastAPActivity > AP_ACTIVITY_MAX_INTERVAL) {
|
||||
if (((apInfo.state == AP_STATE_ONLINE)||(apInfo.state == AP_STATE_FAILED)) && (millis() - lastAPActivity > AP_ACTIVITY_MAX_INTERVAL)) {
|
||||
bool reply = sendPing();
|
||||
if (!reply) {
|
||||
attempts++;
|
||||
|
||||
Reference in New Issue
Block a user