mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 19:40:31 +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: ");
|
||||
if (rxConfig()->rc_smoothing_type == RC_SMOOTHING_TYPE_FILTER) {
|
||||
cliPrintLine("FILTER");
|
||||
uint16_t avgRxFrameMs = rcSmoothingData->averageFrameTimeUs;
|
||||
if (rcSmoothingAutoCalculate()) {
|
||||
const uint16_t avgRxFrameUs = rcSmoothingData->averageFrameTimeUs;
|
||||
cliPrint("# Detected RX frame rate: ");
|
||||
if (avgRxFrameMs == 0) {
|
||||
if (avgRxFrameUs == 0) {
|
||||
cliPrintLine("NO SIGNAL");
|
||||
} 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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue