[SX127x] Fixed incorrect packet length check in FSK mode
This commit is contained in:
parent
ba67ce2720
commit
e5e8947e94
1 changed files with 1 additions and 1 deletions
|
@ -472,7 +472,7 @@ int16_t SX127x::startTransmit(uint8_t* data, size_t len, uint8_t addr) {
|
|||
|
||||
} else if(modem == RADIOLIB_SX127X_FSK_OOK) {
|
||||
// check packet length
|
||||
if(len >= RADIOLIB_SX127X_MAX_PACKET_LENGTH_FSK) {
|
||||
if(len > RADIOLIB_SX127X_MAX_PACKET_LENGTH_FSK) {
|
||||
return(RADIOLIB_ERR_PACKET_TOO_LONG);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue