Merge pull request #457 from nseidle/Allow255Bytes
Fix >= to allow 255 bytes on SX1276
This commit is contained in:
commit
7127433e3b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue