Skip to content

Commit

Permalink
Update ESP32-VirtualMatrixPanel-I2S-DMA.h
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcodetastic authored May 16, 2021
1 parent 6e0a763 commit f73552b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ESP32-VirtualMatrixPanel-I2S-DMA.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -212,4 +212,4 @@ inline void VirtualMatrixPanel::drawIcon (int *ico, int16_t x, int16_t y, int16_
}
}

#endif
#endif

0 comments on commit f73552b

Please sign in to comment.