Skip to content

Commit eee9d85

Browse files
author
cospan
committed
BUG: undefined parameter with CC3000_TINY_DRIVER
the funtion connectOpen works correctly when not using the CC3000_TINY_DRIVER but when using it there is an undefined parameter: ssidLen This parameter looks like it was removed from the function but was overlooked for the CC3000_TINY_DRIVER implementation.
1 parent e0a3091 commit eee9d85

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Adafruit_CC3000.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,6 @@ bool Adafruit_CC3000::startSmartConfig(const char *_deviceName, const char *smar
932932
Connect to an unsecured SSID/AP(security)
933933
934934
@param ssid The named of the AP to connect to (max 32 chars)
935-
@param ssidLen The size of the ssid name
936935
937936
@returns False if an error occured!
938937
*/
@@ -952,7 +951,7 @@ bool Adafruit_CC3000::connectOpen(const char *ssid)
952951
0 ,NULL,0),
953952
"SSID connection failed", false);
954953
#else
955-
wlan_connect(ssid, ssidLen);
954+
wlan_connect(ssid, strlen(ssid));
956955
#endif
957956

958957
return true;

0 commit comments

Comments
 (0)