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
The formatting of the fractional part of the frame interval was not correct. For example 9004us would be displayed as 9.4ms instead of 9.004ms.
This commit is contained in:
parent
4c58889915
commit
564ebfc48d
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