mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 17:59:27 +02:00
also clear disconnect event on GotIP handler
This commit is contained in:
parent
23c9f8c3c3
commit
4e3aa720d8
1 changed files with 2 additions and 0 deletions
|
@ -155,6 +155,8 @@ static void onWifiConnect(WiFiEvent_t event, WiFiEventInfo_t info) {
|
||||||
|
|
||||||
// Event handler for Wi-Fi Got IP
|
// Event handler for Wi-Fi Got IP
|
||||||
static void onWifiGotIP(WiFiEvent_t event, WiFiEventInfo_t info) {
|
static void onWifiGotIP(WiFiEvent_t event, WiFiEventInfo_t info) {
|
||||||
|
//clear disconnects events if we got a IP
|
||||||
|
clear_event(EVENT_WIFI_DISCONNECT);
|
||||||
#ifdef DEBUG_VIA_USB
|
#ifdef DEBUG_VIA_USB
|
||||||
Serial.println("Wi-Fi Got IP.");
|
Serial.println("Wi-Fi Got IP.");
|
||||||
Serial.print("IP address: ");
|
Serial.print("IP address: ");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue