aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2022-12-27 09:54:09 +0000
committerGitHub <noreply@github.com>2022-12-27 09:54:09 +0000
commit03a67c2f1156f937dbe3dd9a9034e44f28061b7c (patch)
treebc962e7851a5af793dc686f347fddb976aba88c9 /src
parent5d38b5215aaff52d62bca959403b2a552f4a1fa2 (diff)
parent4db9e23b36f85ee83a8d915326b1fa1b64e7de12 (diff)
Merge pull request #357 from elliotmatson/patch-1
Fix compiler complaining about parentheses
Diffstat (limited to 'src')
-rw-r--r--src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp b/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp
index fd7ae93..fd0ab2d 100644
--- a/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp
+++ b/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp
@@ -19,7 +19,7 @@ static const char* TAG = "MatrixPanel";
* Irrelevant for ESP32-S2 the way the FIFO ordering works is different - refer to page 679 of S2 technical reference manual
*/
#if defined (ESP32_THE_ORIG)
- #define ESP32_TX_FIFO_POSITION_ADJUST(x_coord) ((x_coord & 1U) ? (x_coord-1):(x_coord+1))
+ #define ESP32_TX_FIFO_POSITION_ADJUST(x_coord) (((x_coord) & 1U) ? (x_coord-1):(x_coord+1))
#else
#define ESP32_TX_FIFO_POSITION_ADJUST(x_coord) x_coord
#endif