WSHH bug (conversion from meters to feet when source was feet!)

This commit is contained in:
bsongis
2012-04-29 13:23:17 +00:00
parent 94d344765d
commit 9bc161e4b1
3 changed files with 26 additions and 4 deletions
+3
View File
@@ -687,6 +687,9 @@ void putsTelemetryValue(uint8_t x, uint8_t y, int16_t val, uint8_t unit, uint8_t
// m to ft *105/32
val = val * 3 + ( val >> 2 ) + (val >> 5) ;
}
if (unit == UNIT_FEET) {
unit = UNIT_METERS;
}
#else
if (unit == UNIT_KTS) {
// kts to km/h