Update ESP32-VirtualMatrixPanel-I2S-DMA.h
This commit is contained in:
parent
6e0a7638f2
commit
f73552b652
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue