Skip to content

Commit

Permalink
Fix AT version check
Browse files Browse the repository at this point in the history
  • Loading branch information
d-kato committed Jul 31, 2019
1 parent 5d8af00 commit 7ec0267
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ESP32/ESP32.cpp
Expand Up @@ -407,7 +407,7 @@ bool ESP32::reset(void)
uint8_t wk_ver[4+1]; /* It needs 1 byte extra. */

if (_parser.send("AT+GMR")
&& _parser.recv("AT version:%hhx.%hhx.%hhx.%hhx(", &wk_ver[0], &wk_ver[1], &wk_ver[2], &wk_ver[3])
&& _parser.recv("AT version:%hhx.%hhx.%hhx.%hhx", &wk_ver[0], &wk_ver[1], &wk_ver[2], &wk_ver[3])
&& _parser.recv("OK")
) {
_at_version = (wk_ver[0] << 24)
Expand Down

0 comments on commit 7ec0267

Please sign in to comment.