aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2021-12-20 20:56:14 +0000
committerGitHub <noreply@github.com>2021-12-20 20:56:14 +0000
commit57f51a8b95c984f22a2e75be56f97fc3247b590a (patch)
tree1f7193e351206a107850a4660d1d973fec2d6a68
parent6aa4e8a070f6f7fb6f130ab4509d85277b119a9c (diff)
Update ESP32-VirtualMatrixPanel-I2S-DMA.h
-rw-r--r--ESP32-VirtualMatrixPanel-I2S-DMA.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ESP32-VirtualMatrixPanel-I2S-DMA.h b/ESP32-VirtualMatrixPanel-I2S-DMA.h
index 80c119e..a34c2b2 100644
--- a/ESP32-VirtualMatrixPanel-I2S-DMA.h
+++ b/ESP32-VirtualMatrixPanel-I2S-DMA.h
@@ -133,7 +133,7 @@ inline VirtualCoords VirtualMatrixPanel::getCoords(int16_t &x, int16_t &y) {
}
// Stupidity check
- if ( vmodule_rows == vmodule_cols == 1) // single panel...
+ if ( (vmodule_rows == 1) && (vmodule_cols == 1)) // single panel...
{
coords.x = x;
coords.y = y;