Skip to content

Commit 034134f

Browse files
committed
Short circuit RSSI failure if in reset mode
1 parent a4f7806 commit 034134f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/WiFi.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,10 @@ uint8_t* WiFiClass::remoteMacAddress(uint8_t* remoteMacAddress)
808808

809809
int32_t WiFiClass::RSSI()
810810
{
811+
if (_mode == WL_RESET_MODE) {
812+
return -100;
813+
}
814+
811815
// Clear pending events:
812816
m2m_wifi_handle_events(NULL);
813817

0 commit comments

Comments
 (0)