From 93cb0a18a9bb13eeb391e36055dc9eac6bde7e05 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 19 Nov 2018 18:14:53 +0100 Subject: [PATCH] Update support_wifi.ino Fix undefine --- sonoff/support_wifi.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonoff/support_wifi.ino b/sonoff/support_wifi.ino index dbd0f24a5..177bb5849 100644 --- a/sonoff/support_wifi.ino +++ b/sonoff/support_wifi.ino @@ -333,7 +333,7 @@ void WifiCheckIp(void) } if (3 == wifi_scan_state) { // Scan done if (wifi_scan_result > 0) { - int best_network_db = INT_MIN; + int best_network_db = -2147483646; for (int8_t i = 0; i < wifi_scan_result; ++i) { String ssid_scan; int32_t rssi_scan;