FIx ARRAYSIZE def and Murphpad string array (#18392)
Co-authored-by: Jonavin <=>
This commit is contained in:
parent
c56dc9c0bb
commit
c6ff10a257
|
@ -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])
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue