Fix >= to allow 255 bytes

This commit is contained in:
Nathan Seidle 2022-01-28 15:50:59 -07:00
parent 6acf8feacc
commit 74feffb4c7

View file

@ -448,7 +448,7 @@ int16_t SX127x::startTransmit(uint8_t* data, size_t len, uint8_t addr) {
int16_t modem = getActiveModem(); int16_t modem = getActiveModem();
if(modem == RADIOLIB_SX127X_LORA) { if(modem == RADIOLIB_SX127X_LORA) {
// check packet length // check packet length
if(len >= RADIOLIB_SX127X_MAX_PACKET_LENGTH) { if(len > RADIOLIB_SX127X_MAX_PACKET_LENGTH) {
return(RADIOLIB_ERR_PACKET_TOO_LONG); return(RADIOLIB_ERR_PACKET_TOO_LONG);
} }