[SX126x] Fixed debug print format

This commit is contained in:
jgromes 2023-06-24 22:22:56 +02:00
parent 2dafa83058
commit 4975828d03

View file

@ -631,7 +631,7 @@ int16_t SX126x::startReceiveDutyCycleAuto(uint16_t senderPreambleLength, uint16_
uint32_t symbolLength = ((uint32_t)(10 * 1000) << this->spreadingFactor) / (10 * this->bandwidthKhz);
uint32_t sleepPeriod = symbolLength * sleepSymbols;
RADIOLIB_DEBUG_PRINTLN("Auto sleep period: %d", sleepPeriod);
RADIOLIB_DEBUG_PRINTLN("Auto sleep period: %lu", sleepPeriod);
// when the unit detects a preamble, it starts a timer that will timeout if it doesn't receive a header in time.
// the duration is sleepPeriod + 2 * wakePeriod.