[SX128x] Fix preamble length calculation (#1243)

pull/1250/head
jgromes 2024-09-30 18:10:18 +02:00
rodzic 5a9ff5a491
commit fdb3ac46ca
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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;