From 1b84852d79789b2f9a88888f3d9775d6510dbdde Mon Sep 17 00:00:00 2001 From: Michel Pastor Date: Mon, 24 May 2021 22:03:12 +0200 Subject: [PATCH] AP_OSD: fix BLH elements --- libraries/AP_OSD/AP_OSD_Screen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_OSD/AP_OSD_Screen.cpp b/libraries/AP_OSD/AP_OSD_Screen.cpp index 9a52d84a9d..2825b7ddd6 100644 --- a/libraries/AP_OSD/AP_OSD_Screen.cpp +++ b/libraries/AP_OSD/AP_OSD_Screen.cpp @@ -1612,7 +1612,7 @@ void AP_OSD_Screen::draw_blh_temp(uint8_t x, uint8_t y) return; } - uint8_t esc_temp = uint8_t(etemp); + uint8_t esc_temp = uint8_t(etemp / 100); backend->write(x, y, false, "%3d%c", (int)u_scale(TEMPERATURE, esc_temp), u_icon(TEMPERATURE)); } @@ -2021,7 +2021,7 @@ void AP_OSD_Screen::draw(void) DRAW_SETTING(clk); DRAW_SETTING(vtx_power); -#ifdef HAVE_AP_BLHELI_SUPPORT +#ifdef HAL_WITH_ESC_TELEM DRAW_SETTING(blh_temp); DRAW_SETTING(blh_rpm); DRAW_SETTING(blh_amps);