Skip to content

Commit 6e60b13

Browse files
committed
Changed wifi_drv.cpp and wl_definitions.h to allow for shield detection
1 parent a69cd64 commit 6e60b13

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

WiFi/utility/wifi_drv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ uint8_t WiFiDrv::getConnectionStatus()
163163
SpiDrv::waitForSlaveReady();
164164

165165
// Wait for reply
166-
uint8_t _data = 0;
166+
uint8_t _data = -1;
167167
uint8_t _dataLen = 0;
168168
SpiDrv::waitResponseCmd(GET_CONN_STATUS_CMD, PARAM_NUMS_1, &_data, &_dataLen);
169169

WiFi/utility/wl_definitions.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
#define WL_MAX_ATTEMPT_CONNECTION 10
2727

2828
typedef enum {
29-
WL_IDLE_STATUS,
29+
WL_NO_SHIELD = 255,
30+
WL_IDLE_STATUS = 0,
3031
WL_NO_SSID_AVAIL,
3132
WL_SCAN_COMPLETED,
3233
WL_CONNECTED,

0 commit comments

Comments
 (0)