[SX128x] Fix preamble length calculation (#1243)
This commit is contained in:
parent
5a9ff5a491
commit
fdb3ac46ca
1 changed files with 1 additions and 1 deletions
|
@ -870,7 +870,7 @@ int16_t SX128x::setPreambleLength(uint32_t preambleLength) {
|
|||
uint8_t m = 1;
|
||||
uint32_t len = 0;
|
||||
for(; e <= 15; e++) {
|
||||
for(; m <= 15; m++) {
|
||||
for(m = 1; m <= 15; m++) {
|
||||
len = m * (uint32_t(1) << e);
|
||||
if(len >= preambleLength) {
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue