Skip to content

Commit aa0bad1

Browse files
committed
Print expected if start/Stop fails
1 parent 61b4789 commit aa0bad1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Firmware/RTK_Everywhere/WiFi.ino

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3065,8 +3065,16 @@ bool RTK_WIFI::stopStart(WIFI_ACTION_t stopping, WIFI_ACTION_t starting)
30653065
systemPrintf("ERROR: RTK_WIFI::stopStart failed!\r\n");
30663066
if (settings.debugWifiState && _verbose)
30673067
{
3068-
reportHeapNow(true);
30693068
systemPrintf("WiFi: RTK_WIFI::stopStart returning; %s\r\n", enabled ? "true" : "false");
3069+
if(enabled == false)
3070+
{
3071+
systemPrintf("0x%08x: _started\r\n", _started);
3072+
systemPrintf("0x%08x: allOnline\r\n", allOnline);
3073+
systemPrintf("0x%08x: (_started & allOnline)\r\n", (_started & allOnline));
3074+
systemPrintf("0x%08x: expected\r\n", expected);
3075+
}
3076+
3077+
reportHeapNow(true);
30703078
}
30713079
return enabled;
30723080
}

0 commit comments

Comments
 (0)