Skip to content

Commit

Permalink
FIx ARRAYSIZE def and Murphpad string array (#18392)
Browse files Browse the repository at this point in the history
Co-authored-by: Jonavin <=>
  • Loading branch information
Jonavin authored Sep 18, 2022
1 parent c56dc9c commit c6ff10a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion keyboards/mechwild/murphpad/keymaps/jonavin/keymap.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ static const keycodedescType PROGMEM keyselection[] = {
{"Break", KC_PAUS},
{"C-A-D", KC_CAD}, // Ctrl-Alt-Del
{"AltF4", KC_AF4},
{"QK_BOOT", QK_BOOT}, // firmware flash mode
{"RESET", QK_BOOT}, // firmware flash mode
};

#define MAX_KEYSELECTION sizeof(keyselection)/sizeof(keyselection[0])
Expand Down
2 changes: 2 additions & 0 deletions users/jonavin/jonavin.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#pragma once

// DEFINE MACROS
#ifndef ARRAYSIZE
#define ARRAYSIZE(arr) sizeof(arr)/sizeof(arr[0])
#endif // !ARRAYSIZE


// LAYERS
Expand Down

0 comments on commit c6ff10a

Please sign in to comment.