Merge pull request #457 from nseidle/Allow255Bytes

Fix >= to allow 255 bytes on SX1276
This commit is contained in:
Jan Gromeš 2022-01-29 08:38:53 +01:00 committed by GitHub
commit 7127433e3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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