Skip to content

Commit 761681e

Browse files
committed
WiFiS3: allow calling firmwareVersion() before begin()
1 parent fbb44b6 commit 761681e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libraries/WiFiS3/src/WiFi.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ static char fw_version[12];
1919
const char* CWifi::firmwareVersion() {
2020
/* -------------------------------------------------------------------------- */
2121
string res = "";
22+
modem.begin();
2223
if(modem.write(string(PROMPT(_FWVERSION)), res, CMD_READ(_FWVERSION))) {
2324
memset(fw_version,0x00,12);
2425
memcpy(fw_version, res.c_str(), res.size() < 12 ? res.size() : 11);

0 commit comments

Comments
 (0)