mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 03:50:02 +03:00
Fix CLI rc_smoothing_info frame rate display formatting (#9289)
Fix CLI rc_smoothing_info frame rate display formatting
This commit is contained in:
commit
f3036221ea
1 changed files with 3 additions and 3 deletions
|
@ -4807,13 +4807,13 @@ static void cliRcSmoothing(char *cmdline)
|
||||||
cliPrint("# RC Smoothing Type: ");
|
cliPrint("# RC Smoothing Type: ");
|
||||||
if (rxConfig()->rc_smoothing_type == RC_SMOOTHING_TYPE_FILTER) {
|
if (rxConfig()->rc_smoothing_type == RC_SMOOTHING_TYPE_FILTER) {
|
||||||
cliPrintLine("FILTER");
|
cliPrintLine("FILTER");
|
||||||
uint16_t avgRxFrameMs = rcSmoothingData->averageFrameTimeUs;
|
|
||||||
if (rcSmoothingAutoCalculate()) {
|
if (rcSmoothingAutoCalculate()) {
|
||||||
|
const uint16_t avgRxFrameUs = rcSmoothingData->averageFrameTimeUs;
|
||||||
cliPrint("# Detected RX frame rate: ");
|
cliPrint("# Detected RX frame rate: ");
|
||||||
if (avgRxFrameMs == 0) {
|
if (avgRxFrameUs == 0) {
|
||||||
cliPrintLine("NO SIGNAL");
|
cliPrintLine("NO SIGNAL");
|
||||||
} else {
|
} else {
|
||||||
cliPrintLinef("%d.%dms", avgRxFrameMs / 1000, avgRxFrameMs % 1000);
|
cliPrintLinef("%d.%03dms", avgRxFrameUs / 1000, avgRxFrameUs % 1000);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cliPrintLinef("# Input filter type: %s", lookupTables[TABLE_RC_SMOOTHING_INPUT_TYPE].values[rcSmoothingData->inputFilterType]);
|
cliPrintLinef("# Input filter type: %s", lookupTables[TABLE_RC_SMOOTHING_INPUT_TYPE].values[rcSmoothingData->inputFilterType]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue