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;