From 87c354a2eeee0af623bda2123354e49f3cec4670 Mon Sep 17 00:00:00 2001 From: John Flinchbaugh Date: Wed, 8 Jan 2025 08:17:44 -0500 Subject: [PATCH] smaller? types. it didn't change image size --- app/spectrum.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/spectrum.c b/app/spectrum.c index 568ea0c..b1b4826 100644 --- a/app/spectrum.c +++ b/app/spectrum.c @@ -871,8 +871,8 @@ uint8_t Rssi2Y(uint16_t rssi) static void DrawSpectrum() { uint16_t steps = GetStepsCount(); - uint16_t bars = (steps > 128) ? 128 : steps; - uint16_t shift_graph = 64 / steps + 1; // to center bar on freq marker + uint8_t bars = (steps > 128) ? 128 : steps; + uint8_t shift_graph = 64 / steps + 1; // to center bar on freq marker uint8_t ox = 0; for (uint8_t i = 0; i < 128; ++i) {