Skip to content

Commit

Permalink
Fix CLI rc_smoothing_info frame rate display formatting (#9289)
Browse files Browse the repository at this point in the history
Fix CLI rc_smoothing_info frame rate display formatting
  • Loading branch information
mikeller committed Dec 22, 2019
1 parent a7fb0d0 commit 89051e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/cli/cli.c
Expand Up @@ -4810,13 +4810,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);
}
}
cliPrint("# Input filter type: ");
Expand Down

0 comments on commit 89051e2

Please sign in to comment.