From f016c61c5cd99443106564cefdbcd2666c3ed819 Mon Sep 17 00:00:00 2001 From: Chris Greening Date: Wed, 16 Oct 2024 18:46:04 +0100 Subject: [PATCH] should be const --- firmware/src/Input/TouchKeyboardV2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/src/Input/TouchKeyboardV2.h b/firmware/src/Input/TouchKeyboardV2.h index 6fd754f..241689a 100644 --- a/firmware/src/Input/TouchKeyboardV2.h +++ b/firmware/src/Input/TouchKeyboardV2.h @@ -25,7 +25,7 @@ class TouchKeyboardV2 uint32_t calibrations[8][5] = {0}; #ifdef TOUCH_KEYBOARD_V2 // all the touch pads we are using - touch_pad_t touchPads[5] = {TOUCH_PAD_NUM13, TOUCH_PAD_NUM12, TOUCH_PAD_NUM11, TOUCH_PAD_NUM10, TOUCH_PAD_NUM9}; + const touch_pad_t touchPads[5] = {TOUCH_PAD_NUM13, TOUCH_PAD_NUM12, TOUCH_PAD_NUM11, TOUCH_PAD_NUM10, TOUCH_PAD_NUM9}; #endif void setupTouchPad() @@ -83,7 +83,7 @@ class TouchKeyboardV2 public: // mapping from address to bit to spectrum key // we have 8 addresses and 5 bits per address - SpecKeys rows[8][5] = { + const SpecKeys rows[8][5] = { // FEFE {SPECKEY_SHIFT, SPECKEY_Z, SPECKEY_X, SPECKEY_C, SPECKEY_V}, // FBFE