Skip to content

Commit

Permalink
[SX127x] Fixed software timeout duration (#962)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgromes committed Feb 13, 2024
1 parent e426776 commit a907026
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/SX127x/SX127x.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ int16_t SX127x::receive(uint8_t* data, size_t len) {
uint32_t timeout = 0;
if(this->mod->getGpio() == RADIOLIB_NC) {
float symbolLength = (float) (uint32_t(1) << this->spreadingFactor) / (float) this->bandwidth;
timeout = 100*symbolLength;
timeout = (uint32_t)(symbolLength * 100.0 * 1000.0);
}

// wait for packet reception or timeout
Expand Down

0 comments on commit a907026

Please sign in to comment.