From 0c4d617e41b37398e556241ad91a0969cfe78229 Mon Sep 17 00:00:00 2001 From: Egor Shitikov Date: Mon, 12 Aug 2024 11:07:08 -0700 Subject: [PATCH] some fixes --- src/main.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index dfae3c3..e97cc4b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -356,7 +356,8 @@ void loop(void) scan_start_time = millis(); #endif // Real display pixel x - axis. - // Beacuse of the SCAN_RBW_RFACTOR x is not a display coordinate anymore. + // Because of the SCAN_RBW_RFACTOR x is not a display coordinate anymore + // x > STEPS on SCAN_RBW_RFACTOR int dispaly_x = x / SCAN_RBW_RFACTOR; waterfall[dispaly_x] = false; freq = fr_begin + (range * ((float)x / (STEPS * SCAN_RBW_RFACTOR))); @@ -564,12 +565,13 @@ void loop(void) if ((y == drone_detection_level) && (dispaly_x % 2 == 0)) { display.setColor(WHITE); - if (filtered_result[y] == 1 && filtered_result[y + 1] == 1) + if (filtered_result[y] == 1) { display.setColor(INVERSE); } display.setPixel(dispaly_x, y); - display.setPixel(dispaly_x, y + 1); // 2 px wide + display.setPixel(dispaly_x, y - 1); // 2 px wide + display.setColor(WHITE); } }