From 15cd0a756305611d7a481005d3c3c32481cbac9f Mon Sep 17 00:00:00 2001 From: mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> Date: Sun, 10 Oct 2021 23:03:37 +0100 Subject: [PATCH] Update OneEighthScanMatrixPanel.h --- examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h b/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h index dcfa49a..4bc9460 100644 --- a/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h +++ b/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h @@ -157,8 +157,8 @@ inline VirtualCoords OneEighthMatrixPanel::getCoords(int16_t x, int16_t y) { } // Half the y coord. - y = (i % 8); - if ( i >= panelResY/2 ) y +=8; + coords.y = (y % 8); + if ( y >= panelResY/2 ) coords.y +=8; /* * END: 1/8 Scan Panel Pixel Re-Mapping