From ca0df7e66ecbfc673c51f801ab960a4cf8be92f5 Mon Sep 17 00:00:00 2001 From: mverch67 Date: Tue, 25 Feb 2025 10:50:40 +0100 Subject: [PATCH] minor update of comments in code --- include/graphics/map/MapPanel.h | 6 +++++- source/graphics/map/MapPanel.cpp | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/graphics/map/MapPanel.h b/include/graphics/map/MapPanel.h index aac5864..4cc999e 100644 --- a/include/graphics/map/MapPanel.h +++ b/include/graphics/map/MapPanel.h @@ -9,8 +9,12 @@ #include /** - * Size independent map for x/y/z raster tiles + * Size independent map panel for x/y/z raster tiles * Draws the tiles and objects to the provided lvgl panel. + * Stores three positions: + * - home + * - GPS (current) + * - scrolled (manual) */ class MapPanel { diff --git a/source/graphics/map/MapPanel.cpp b/source/graphics/map/MapPanel.cpp index 5a1c0c7..6bf2c62 100644 --- a/source/graphics/map/MapPanel.cpp +++ b/source/graphics/map/MapPanel.cpp @@ -250,7 +250,7 @@ void MapPanel::scroll(int16_t deltaX, int16_t deltaY, uint16_t fraction) tilesY++; } } else { - ILOG_ERROR("scroll: start tile %d/%d", xStart, yStart); + ILOG_ERROR("scroll: start tile %d/%d missing", xStart, yStart); return; } // check if scrolling requires new tiles at the ending row or column