From d92a14edcb3ed7bdfcb11dcaf85c39cd78466607 Mon Sep 17 00:00:00 2001 From: Jake Carter Date: Thu, 2 Nov 2023 15:14:38 -0500 Subject: [PATCH] Add ability to override TS_MAX_BUTTONS for tsc2046 --- Libraries/MiscDrivers/Touchscreen/tsc2046.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/MiscDrivers/Touchscreen/tsc2046.h b/Libraries/MiscDrivers/Touchscreen/tsc2046.h index a28fa3b616e..e9e93668fc3 100644 --- a/Libraries/MiscDrivers/Touchscreen/tsc2046.h +++ b/Libraries/MiscDrivers/Touchscreen/tsc2046.h @@ -43,7 +43,9 @@ #include /************************************************************************************/ +#ifndef TS_MAX_BUTTONS #define TS_MAX_BUTTONS 16 +#endif #define TS_INVALID_KEY_CODE -1 typedef enum {