diff options
| author | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2021-10-10 21:43:56 +0100 |
|---|---|---|
| committer | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2021-10-10 21:43:56 +0100 |
| commit | 35b556d57f72cf5a7465d4c5944a0c92f57b91f8 (patch) | |
| tree | cf3783b281fd823d4c0de03625ae17bab7886cd8 /examples | |
| parent | 90d1b74e582ee1bece48bbdfc61e3391513ceb15 (diff) | |
Update OneEighthScanMatrixPanel.h
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h b/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h index 31d16c8..4577d22 100644 --- a/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h +++ b/examples/One_Eighth_1_8_ScanPanel/OneEighthScanMatrixPanel.h @@ -172,7 +172,7 @@ inline VirtualCoords OneEighthMatrixPanel::getCoords(int16_t x, int16_t y) { coords.y = (_cfg.mx_height-1) - coords.y; */ - coords.x = (panelResX * row * col - 1) - coords.x; + coords.x = (panelResX * vmodule_rows * vmodule_cols - 1) - coords.x; coords.y = (panelResY-1) - coords.y; } |
