Skip to content

Commit

Permalink
should be const
Browse files Browse the repository at this point in the history
  • Loading branch information
cgreening committed Oct 16, 2024
1 parent 0d54590 commit f016c61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/src/Input/TouchKeyboardV2.h
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f016c61

Please sign in to comment.