aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2020-08-14 11:33:20 +0100
committermrfaptastic <12006953+mrfaptastic@users.noreply.github.com>2020-08-14 11:33:20 +0100
commitdb198d7b60bfc71bb83565a789b1a4b0d50649ca (patch)
tree7014e4054fc3e70ba13ff8e69ff874a3e7529736
parentb504f6292de8a07f155d42f650e535ef901754c6 (diff)
Thou shalt not trust Adafruit GFX
Especially when using the co-ordinates it generates as a means to access memory.
-rw-r--r--ESP32-RGB64x32MatrixPanel-I2S-DMA.cpp2
-rw-r--r--library.json2
-rw-r--r--library.properties2
3 files changed, 3 insertions, 3 deletions
diff --git a/ESP32-RGB64x32MatrixPanel-I2S-DMA.cpp b/ESP32-RGB64x32MatrixPanel-I2S-DMA.cpp
index dedea53..b4f07da 100644
--- a/ESP32-RGB64x32MatrixPanel-I2S-DMA.cpp
+++ b/ESP32-RGB64x32MatrixPanel-I2S-DMA.cpp
@@ -442,7 +442,7 @@ void RGB64x32MatrixPanel_I2S_DMA::updateMatrixDMABuffer(int16_t x_coord, int16_t
// Check that the co-ordinates are within range, or it'll break everything big time.
// Valid co-ordinates are from 0 to (MATRIX_XXXX-1)
- if ( x_coord >= MATRIX_WIDTH || y_coord >= MATRIX_HEIGHT) {
+ if ( x_coord < 0 || y_coord < 0 || x_coord >= MATRIX_WIDTH || y_coord >= MATRIX_HEIGHT) {
return;
}
diff --git a/library.json b/library.json
index 58bd538..21425a4 100644
--- a/library.json
+++ b/library.json
@@ -10,7 +10,7 @@
"name": "Faptastic",
"url": "https://github.com/mrfaptastic/"
},
- "version": "1.2.1",
+ "version": "1.2.2",
"frameworks": "arduino",
"platforms": "esp32",
"examples": [
diff --git a/library.properties b/library.properties
index ca2813e..6b7f5ef 100644
--- a/library.properties
+++ b/library.properties
@@ -1,5 +1,5 @@
name=ESP32 64x32 LED MATRIX HUB75 DMA Display
-version=1.2.1
+version=1.2.2
author=Faptastic
maintainer=Faptastic
sentence=Experimental DMA based LED Matrix HUB75 Library