Update ESP32-VirtualMatrixPanel-I2S-DMA.h

Third time lucky.
This commit is contained in:
mrfaptastic 2021-04-07 09:11:14 +01:00
parent cfb9cd1526
commit 6180fe6e07

View file

@ -107,7 +107,7 @@ inline VirtualCoords VirtualMatrixPanel::getCoords(int16_t x, int16_t y) {
coords.x = coords.y = 0; coords.x = coords.y = 0;
if (x < 0 || x > module_cols*panelResX || y < 0 || y > module_rows*panelResY ) { 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); //Serial.printf("VirtualMatrixPanel::getCoords(): Invalid virtual display coordinate. x,y: %d, %d\r\n", x, y);
return coords; return coords;
} }