From cb11ec72672d6415889e1effae15725136b14cc6 Mon Sep 17 00:00:00 2001 From: Bohdan Kmit Date: Tue, 23 Apr 2024 12:55:00 +0300 Subject: [PATCH] Draw line between graphs and waterfall --- nanovna.h | 2 +- plot.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nanovna.h b/nanovna.h index c0acb0b..298426d 100644 --- a/nanovna.h +++ b/nanovna.h @@ -614,7 +614,7 @@ extern uint16_t graph_bottom; // #define CELLOFFSETX 0 #define AREA_WIDTH_NORMAL (CELLOFFSETX + WIDTH) -#define AREA_HEIGHT_NORMAL ( HEIGHT + 1) +#define AREA_HEIGHT_NORMAL ( HEIGHT) #define GRID_X_TEXT (AREA_WIDTH_NORMAL - 7*5) diff --git a/plot.c b/plot.c index 09d659f..135d8d7 100644 --- a/plot.c +++ b/plot.c @@ -2117,7 +2117,7 @@ static void update_waterfall(void){ int i; int w_width = area_width < WIDTH ? area_width : WIDTH; // START_PROFILE; - for (i = CHART_BOTTOM-1; i >=graph_bottom+1; i--) { // Scroll down + for (i = CHART_BOTTOM-1; i >=graph_bottom; i--) { // Scroll down ili9341_read_memory(OFFSETX, i, w_width, 1, spi_buffer); ili9341_bulk(OFFSETX, i+1, w_width, 1); } @@ -2188,7 +2188,7 @@ static void update_waterfall(void){ spi_buffer[j++] = color; } } - ili9341_bulk(OFFSETX, graph_bottom+1, w_width, 1); + ili9341_bulk(OFFSETX, graph_bottom, w_width, 1); // STOP_PROFILE; } #if 0