From 5f71fc0bf4eb045d883c752b929175626f213cfe Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Sat, 5 Jun 2021 09:37:04 +0200 Subject: [PATCH] Do not use marker cache when index changes --- plot.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plot.c b/plot.c index c5e1dd1..ffadd00 100644 --- a/plot.c +++ b/plot.c @@ -283,16 +283,20 @@ index_to_value(const int i) float marker_cache[MARKERS_MAX]; bool marker_cache_valid[MARKERS_MAX]; +int32_t marker_cache_index[MARKERS_MAX]; + void clear_marker_cache(void) { - for (int i = 0; i