Suppress double promotion warning for debug
This commit is contained in:
parent
650d00b3e3
commit
8126e6f508
2 changed files with 4 additions and 4 deletions
|
@ -766,7 +766,7 @@ int16_t Si443x::updateClockRecovery() {
|
|||
|
||||
// print that whole mess
|
||||
RADIOLIB_DEBUG_BASIC_PRINTLN("%X\n%X\n%X", bypass, decRate, manch);
|
||||
RADIOLIB_DEBUG_BASIC_PRINT_FLOAT(rxOsr, 2);
|
||||
RADIOLIB_DEBUG_BASIC_PRINT_FLOAT((double)rxOsr, 2);
|
||||
RADIOLIB_DEBUG_BASIC_PRINTLN("\t%d\t%X\n%lu\t%lX\n%d\t%X", rxOsr_fixed, rxOsr_fixed, (long unsigned int)ncoOff, (long unsigned int)ncoOff, crGain, crGain);
|
||||
|
||||
// update oversampling ratio
|
||||
|
|
|
@ -2167,7 +2167,7 @@ bool LoRaWANNode::execMacCommand(uint8_t cid, uint8_t* optIn, uint8_t lenIn, uin
|
|||
// get the configuration
|
||||
uint8_t macChIndex = optIn[0];
|
||||
uint32_t macFreq = LoRaWANNode::ntoh<uint32_t>(&optIn[1], 3);
|
||||
RADIOLIB_DEBUG_PROTOCOL_PRINTLN("DlChannelReq: index = %d, freq = %7.3f MHz", macChIndex, macFreq / 10000.0f);
|
||||
RADIOLIB_DEBUG_PROTOCOL_PRINTLN("DlChannelReq: index = %d, freq = %7.3f MHz", macChIndex, macFreq / 10000.0);
|
||||
uint8_t freqDlAck = 0;
|
||||
uint8_t freqUlAck = 0;
|
||||
|
||||
|
@ -2865,7 +2865,7 @@ int16_t LoRaWANNode::setPhyProperties(const LoRaWANChannel_t* chnl, uint8_t dir,
|
|||
syncWord[2] = (uint8_t)RADIOLIB_LORAWAN_GFSK_SYNC_WORD;
|
||||
syncWordLen = 3;
|
||||
RADIOLIB_DEBUG_PROTOCOL_PRINTLN("FSK: BR = %4.1f, FD = %4.1f kHz",
|
||||
dr.fsk.bitRate, dr.fsk.freqDev);
|
||||
(double)dr.fsk.bitRate, (double)dr.fsk.freqDev);
|
||||
} break;
|
||||
|
||||
case(ModemType_t::RADIOLIB_MODEM_LORA): {
|
||||
|
@ -2873,7 +2873,7 @@ int16_t LoRaWANNode::setPhyProperties(const LoRaWANChannel_t* chnl, uint8_t dir,
|
|||
syncWord[0] = RADIOLIB_LORAWAN_LORA_SYNC_WORD;
|
||||
syncWordLen = 1;
|
||||
RADIOLIB_DEBUG_PROTOCOL_PRINTLN("LoRa: SF = %d, BW = %5.1f kHz, CR = 4/%d, IQ: %c",
|
||||
dr.lora.spreadingFactor, dr.lora.bandwidth, dr.lora.codingRate, dir ? 'D' : 'U');
|
||||
dr.lora.spreadingFactor, (double)dr.lora.bandwidth, dr.lora.codingRate, dir ? 'D' : 'U');
|
||||
} break;
|
||||
|
||||
case(ModemType_t::RADIOLIB_MODEM_LRFHSS): {
|
||||
|
|
Loading…
Add table
Reference in a new issue