Skip to content

Commit

Permalink
[SX128x] Fix preamble length calculation (#1243)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgromes committed Sep 30, 2024
1 parent 5a9ff5a commit fdb3ac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/SX128x/SX128x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fdb3ac4

Please sign in to comment.