diff options
| author | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2021-04-07 09:11:14 +0100 |
|---|---|---|
| committer | mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> | 2021-04-07 09:11:14 +0100 |
| commit | 6180fe6e07a6e5defb04ff7a78f6f76ee4918923 (patch) | |
| tree | b2c344e6ffba40497273942ec8a5544111bc1155 | |
| parent | cfb9cd1526005d7f36138e4180eac2fd55b1bcb3 (diff) | |
Update ESP32-VirtualMatrixPanel-I2S-DMA.h
Third time lucky.
| -rw-r--r-- | ESP32-VirtualMatrixPanel-I2S-DMA.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ESP32-VirtualMatrixPanel-I2S-DMA.h b/ESP32-VirtualMatrixPanel-I2S-DMA.h index 4ea8a86..7830c6c 100644 --- a/ESP32-VirtualMatrixPanel-I2S-DMA.h +++ b/ESP32-VirtualMatrixPanel-I2S-DMA.h @@ -107,7 +107,7 @@ inline VirtualCoords VirtualMatrixPanel::getCoords(int16_t x, int16_t y) { 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); return coords; } |
