Use %u not %d for unsigned

This commit is contained in:
Jonathan Swoboda 2024-09-24 14:10:28 -04:00
parent e135948940
commit 1009f5b93e

View file

@ -129,14 +129,14 @@ void SX127x::dump_config() {
LOG_PIN(" NSS Pin: ", this->nss_pin_);
LOG_PIN(" RST Pin: ", this->rst_pin_);
ESP_LOGCONFIG(TAG, " PA Pin: %s", this->pa_pin_ == PA_PIN_BOOST ? "BOOST" : "RFO");
ESP_LOGCONFIG(TAG, " PA Power: %d dBm", this->pa_power_);
ESP_LOGCONFIG(TAG, " PA Power: %u dBm", this->pa_power_);
ESP_LOGCONFIG(TAG, " Frequency: %f MHz", (float) this->frequency_ / 1000000);
ESP_LOGCONFIG(TAG, " Modulation: %s", this->modulation_ == MOD_FSK ? "FSK" : "OOK");
ESP_LOGCONFIG(TAG, " Rx Bandwidth: %.1f kHz", (float) rx_bw / 1000);
ESP_LOGCONFIG(TAG, " Rx Start: %s", this->rx_start_ ? "true" : "false");
ESP_LOGCONFIG(TAG, " Rx Floor: %.1f dBm", this->rx_floor_);
ESP_LOGCONFIG(TAG, " FSK Fdev: %d Hz", this->fsk_fdev_);
ESP_LOGCONFIG(TAG, " FSK Ramp: %d us", RAMP_LUT[this->fsk_ramp_]);
ESP_LOGCONFIG(TAG, " FSK Fdev: %u Hz", this->fsk_fdev_);
ESP_LOGCONFIG(TAG, " FSK Ramp: %u us", RAMP_LUT[this->fsk_ramp_]);
if (this->fsk_shaping_ == SHAPING_BT_1_0) {
ESP_LOGCONFIG(TAG, " FSK Shaping: BT_1_0");
} else if (this->fsk_shaping_ == SHAPING_BT_0_5) {