Reduce RTX and Platform verbosity on Linux, add missing newline in RTX

replace/f0e76fb16276d76a5397daa1949e175f949dfec8
Federico Amedeo Izzo 2021-02-11 12:44:09 +01:00 zatwierdzone przez Niccolò Izzo
rodzic 3ddf7f3557
commit 845d0b8a7d
2 zmienionych plików z 7 dodań i 5 usunięć

Wyświetl plik

@ -43,7 +43,7 @@ void radio_setBandwidth(const enum bandwidth bw)
void radio_setOpmode(const enum opmode mode)
{
char *mod = (mode == FM) ? "FM" : "DMR";
printf("radio_linux: setting opmode to %s", mod);
printf("radio_linux: setting opmode to %s\n", mod);
}
void radio_setVcoFrequency(const freq_t frequency, const bool isTransmitting)
@ -88,6 +88,7 @@ void radio_updateCalibrationParams(const rtxStatus_t* rtxCfg)
float radio_getRssi(const freq_t rxFreq)
{
printf("radio_linux: requested RSSI at freq %d, returning -100dBm\n", rxFreq);
// Commented to reduce verbosity on Linux
//printf("radio_linux: requested RSSI at freq %d, returning -100dBm\n", rxFreq);
return -100.0f;
}

Wyświetl plik

@ -91,14 +91,15 @@ void platform_ledOn(led_t led)
str = "WHITE";
break;
}
printf("platform_ledOn(%s)\n", str);
// Commented to reduce verbosity on Linux
//printf("platform_ledOn(%s)\n", str);
}
void platform_ledOff(led_t led)
{
printf("platform_ledOff()\n");
// Commented to reduce verbosity on Linux
//printf("platform_ledOff()\n");
}