Permalink
Browse files

SPRacingF3NEO - Scale RSSI.

Related to #2514
  • Loading branch information...
1 parent 7a5b36a commit cb6c86149999475a98d471e1f4270dbc49ce0eb7 @hydra hydra committed with hydra Dec 6, 2016
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/main/fc/cleanflight_fc.c
@@ -1090,7 +1090,8 @@ void osdUpdateFCState(void)
{
fcStatus.vbat = vbat;
fcStatus.fcState = packFlightModeFlags();
- fcStatus.rssi = rssi;
+ fcStatus.rssi = scaleRange(rssi, 0, 1023, 0, 1000);
+
}
void taskDrawScreen(void)

1 comment on commit cb6c861

@SandroGrzicic
Contributor
SandroGrzicic commented on cb6c861 Dec 7, 2016 edited

Great, so as far as I understand that means osdElementRender_rssi will continue to work properly with the new changes, by simply diving the fcStatus.rssi (in the range 0-1000) by 10 to get a rssi in the range of 0 to 100 ("rounded" down, which is fine).

Please sign in to comment.