diff options
Diffstat (limited to 'keyboards/crkbd/keymaps/lib/mode_icon_reader.c')
| -rw-r--r-- | keyboards/crkbd/keymaps/lib/mode_icon_reader.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/keyboards/crkbd/keymaps/lib/mode_icon_reader.c b/keyboards/crkbd/keymaps/lib/mode_icon_reader.c index cb3d8adb1..04c226506 100644 --- a/keyboards/crkbd/keymaps/lib/mode_icon_reader.c +++ b/keyboards/crkbd/keymaps/lib/mode_icon_reader.c | |||
| @@ -1,13 +1,13 @@ | |||
| 1 | #include <stdio.h> | ||
| 1 | #include "crkbd.h" | 2 | #include "crkbd.h" |
| 2 | 3 | ||
| 3 | char mode_icon[40]; | 4 | char mode_icon[24]; |
| 4 | 5 | ||
| 5 | char *read_mode_icon(bool swap) | 6 | const char *read_mode_icon(bool swap) { |
| 6 | { | 7 | static char logo[][2][3] = {{{0x95, 0x96, 0}, {0xb5, 0xb6, 0}}, {{0x97, 0x98, 0}, {0xb7, 0xb8, 0}}}; |
| 7 | static char logo[][2][3]={{{0x95,0x96,0},{0xb5,0xb6,0}},{{0x97,0x98,0},{0xb7,0xb8,0}}}; | 8 | if (swap == false) { |
| 8 | if(swap == false){ | ||
| 9 | snprintf(mode_icon, sizeof(mode_icon), "%s\n%s", logo[0][0], logo[0][1]); | 9 | snprintf(mode_icon, sizeof(mode_icon), "%s\n%s", logo[0][0], logo[0][1]); |
| 10 | }else{ | 10 | } else { |
| 11 | snprintf(mode_icon, sizeof(mode_icon), "%s\n%s", logo[1][0], logo[1][1]); | 11 | snprintf(mode_icon, sizeof(mode_icon), "%s\n%s", logo[1][0], logo[1][1]); |
| 12 | } | 12 | } |
| 13 | 13 | ||
