From ac91760d9353c301e1da382f93e596238cf6d336 Mon Sep 17 00:00:00 2001 From: maron2000 <68574602+maron2000@users.noreply.github.com> Date: Tue, 10 Oct 2023 21:49:52 +0900 Subject: [PATCH] Fix typo --- src/output/output_ttf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/output_ttf.cpp b/src/output/output_ttf.cpp index 7099729b8d..a38302fd04 100644 --- a/src/output/output_ttf.cpp +++ b/src/output/output_ttf.cpp @@ -276,7 +276,7 @@ bool setColors(const char *colorArray, int n) { nextRGB++; nextRGB++; } else if (sscanf(nextRGB, " #%6x", ((uint32_t*)(&rgbVal[3]))) == 1) { // Hexadecimal - if (rgbVal[3] < 0 || rgbVal[3] > 0xFFFFF) + if (rgbVal[3] < 0 || rgbVal[3] > 0xFFFFFF) return false; for (int i = 2; i >= 0; i--) { rgbVal[i] = rgbVal[3]&255;