Skip to content

Commit

Permalink
Fix a bug that may cause an error when not using CTS
Browse files Browse the repository at this point in the history
  • Loading branch information
d-kato committed Apr 12, 2019
1 parent 99e232c commit 9817dc0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ESP32/ESP32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -641,8 +641,8 @@ bool ESP32::send(int id, const void *data, uint32_t amount)
return false;
}
send_size = amount;
if (send_size > 2048) {
send_size = 2048;
if (send_size > 512) {
send_size = 512;
}
startup();
setTimeout(ESP32_SEND_TIMEOUT);
Expand Down

0 comments on commit 9817dc0

Please sign in to comment.