From f73552b6520df596ba0fd0bb6911e43257590e23 Mon Sep 17 00:00:00 2001 From: mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> Date: Sun, 16 May 2021 15:08:18 +0100 Subject: [PATCH] Update ESP32-VirtualMatrixPanel-I2S-DMA.h --- ESP32-VirtualMatrixPanel-I2S-DMA.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ESP32-VirtualMatrixPanel-I2S-DMA.h b/ESP32-VirtualMatrixPanel-I2S-DMA.h index 7830c6c..5dee0b4 100644 --- a/ESP32-VirtualMatrixPanel-I2S-DMA.h +++ b/ESP32-VirtualMatrixPanel-I2S-DMA.h @@ -105,7 +105,7 @@ class VirtualMatrixPanel inline VirtualCoords VirtualMatrixPanel::getCoords(int16_t x, int16_t y) { - coords.x = coords.y = 0; + coords.x = coords.y = -1; // By defalt use an invalid co-ordinates that will be rejected by updateMatrixDMABuffer if (x < 0 || x > width() || y < 0 || y > height() ) { //Serial.printf("VirtualMatrixPanel::getCoords(): Invalid virtual display coordinate. x,y: %d, %d\r\n", x, y); @@ -212,4 +212,4 @@ inline void VirtualMatrixPanel::drawIcon (int *ico, int16_t x, int16_t y, int16_ } } -#endif \ No newline at end of file +#endif