Skip to content

Commit

Permalink
Bugfix: When only one param is sent, the total length field is not se…
Browse files Browse the repository at this point in the history
…nd, to the overhead bytes are 5 instead of 6
  • Loading branch information
aentinger committed Aug 4, 2020
1 parent 1efcc58 commit 6956ea9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utility/wifi_drv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ int8_t WiFiDrv::downloadOTA(const char* url, uint8_t url_len)
SpiDrv::sendParam((uint8_t*)url, url_len, LAST_PARAM);

// pad to multiple of 4
int commandSize = 6 + url_len;
int commandSize = 5 + url_len;
while (commandSize % 4) {
SpiDrv::readChar();
commandSize++;
Expand Down

0 comments on commit 6956ea9

Please sign in to comment.