update con WifiAP y winlink reset

This commit is contained in:
richonguzman 2024-11-14 13:11:15 -03:00
parent 14654b4d32
commit cdf880c9f6
2 changed files with 4 additions and 2 deletions

View File

@ -26,8 +26,8 @@ typedef void (*DirectionFunc)();
} }
bool checkMenuDisplayToExitInterrupt(int menu) { bool checkMenuDisplayToExitInterrupt(int menu) {
if (menu == 10 || menu == 120 || menu == 200 || menu == 210 || menu == 51 || menu == 50100 || menu == 50111) { if (menu == 10 || menu == 120 || menu == 200 || menu == 210 || menu == 51 || menu == 50100 || menu == 50111 || menu == 9001) {
return true; // read / delete/ callsignIndex / loraIndex / readW / readW / delete return true; // read / delete/ callsignIndex / loraIndex / readW / readW / delete / enter WiFiAP
} else { } else {
return false; return false;
} }

View File

@ -29,6 +29,7 @@ extern int ackRequestNumber;
extern uint32_t lastTxTime; extern uint32_t lastTxTime;
extern uint8_t winlinkStatus; extern uint8_t winlinkStatus;
extern uint32_t lastChallengeTime;
extern bool wxRequestStatus; extern bool wxRequestStatus;
extern uint32_t wxRequestTime; extern uint32_t wxRequestTime;
@ -516,6 +517,7 @@ namespace MSG_Utils {
logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "Winlink","---> Log Out"); logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "Winlink","---> Log Out");
lastMsgRxTime = millis(); lastMsgRxTime = millis();
displayShow("_WINLINK_>", "", " LOG OUT !!!", 2000); displayShow("_WINLINK_>", "", " LOG OUT !!!", 2000);
lastChallengeTime = 0;
winlinkStatus = 0; winlinkStatus = 0;
} else if ((winlinkStatus == 5) && (lastReceivedPacket.message.indexOf("Log off successful") == -1) && (lastReceivedPacket.message.indexOf("Login valid") == -1) && (lastReceivedPacket.message.indexOf("Login [") == -1) && (lastReceivedPacket.message.indexOf("ack") == -1)) { } else if ((winlinkStatus == 5) && (lastReceivedPacket.message.indexOf("Log off successful") == -1) && (lastReceivedPacket.message.indexOf("Login valid") == -1) && (lastReceivedPacket.message.indexOf("Login [") == -1) && (lastReceivedPacket.message.indexOf("ack") == -1)) {
lastMsgRxTime = millis(); lastMsgRxTime = millis();