Skip to content

Commit 6956ea9

Browse files
committed
Bugfix: When only one param is sent, the total length field is not send, to the overhead bytes are 5 instead of 6
1 parent 1efcc58 commit 6956ea9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utility/wifi_drv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1154,7 +1154,7 @@ int8_t WiFiDrv::downloadOTA(const char* url, uint8_t url_len)
11541154
SpiDrv::sendParam((uint8_t*)url, url_len, LAST_PARAM);
11551155

11561156
// pad to multiple of 4
1157-
int commandSize = 6 + url_len;
1157+
int commandSize = 5 + url_len;
11581158
while (commandSize % 4) {
11591159
SpiDrv::readChar();
11601160
commandSize++;

0 commit comments

Comments
 (0)