Correct sign error in overload calculation

pull/4/head
erikkaashoek 6 years ago
parent aa92d9016d
commit f3d7261ddc

@ -2057,8 +2057,8 @@ static void cell_draw_marker_info(int x0, int y0)
// buf[k++] = 0;
ili9341_set_background(DEFAULT_BG_COLOR);
uint16_t color;
if ((setting.mode == M_LOW && temppeakLevel - get_attenuation() - setting.offset > -1) ||
(setting.mode == M_HIGH && temppeakLevel - get_attenuation()- setting.offset > -10))
if ((setting.mode == M_LOW && temppeakLevel - get_attenuation() + setting.offset > -1) ||
(setting.mode == M_HIGH && temppeakLevel - get_attenuation()+ setting.offset > -10))
color = BRIGHT_COLOR_RED;
else
color = marker_color(markers[i].mtype);

Loading…
Cancel
Save

Powered by TurnKey Linux.