diff --git a/src/modules/SX127x/SX127x.cpp b/src/modules/SX127x/SX127x.cpp index cdf68ad32..bdf4bae51 100644 --- a/src/modules/SX127x/SX127x.cpp +++ b/src/modules/SX127x/SX127x.cpp @@ -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