From 43f98e0f1fa7aa2f59023e4352e8139c877b7495 Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Mon, 13 Apr 2020 17:01:00 +0200 Subject: [PATCH] Attenuation always positive on screen --- sa_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sa_core.c b/sa_core.c index 7cfeba9..1e933ec 100644 --- a/sa_core.c +++ b/sa_core.c @@ -1170,7 +1170,7 @@ void draw_cal_status(void) ili9341_drawstring("Attn:", x, y); y += YSTEP; - plot_printf(buf, BLEN, "%ddB", -setting_attenuate); + plot_printf(buf, BLEN, "%ddB", setting_attenuate); buf[5]=0; ili9341_drawstring(buf, x, y);