mirror of
				https://github.com/mfulz/qmk_firmware.git
				synced 2025-10-31 13:22:31 +01:00 
			
		
		
		
	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}, |         {"Break",   KC_PAUS}, | ||||||
|         {"C-A-D",   KC_CAD},  // Ctrl-Alt-Del
 |         {"C-A-D",   KC_CAD},  // Ctrl-Alt-Del
 | ||||||
|         {"AltF4",   KC_AF4}, |         {"AltF4",   KC_AF4}, | ||||||
|         {"QK_BOOT",   QK_BOOT},   // firmware flash mode
 |         {"RESET",   QK_BOOT},   // firmware flash mode
 | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| #define MAX_KEYSELECTION sizeof(keyselection)/sizeof(keyselection[0]) | #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 | #pragma once | ||||||
| 
 | 
 | ||||||
| // DEFINE MACROS
 | // DEFINE MACROS
 | ||||||
|  | #ifndef ARRAYSIZE | ||||||
| #define ARRAYSIZE(arr)  sizeof(arr)/sizeof(arr[0]) | #define ARRAYSIZE(arr)  sizeof(arr)/sizeof(arr[0]) | ||||||
|  | #endif // !ARRAYSIZE
 | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| // LAYERS
 | // LAYERS
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 jonavin
						jonavin