diff options
author | Joel Challis <git@zvecr.com> | 2022-07-31 20:36:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-31 12:36:30 -0700 |
commit | f7aaed1b57d264a983d4890ce6ada930ce2f6368 (patch) | |
tree | 9d08ad3e896297706c8b3b25e78aa30e6f2b60f1 /keyboards/crkbd/lib/layer_state_reader.c | |
parent | c10c2575b8f71b5fccad6a50bf79bacc7b3caeaf (diff) |
Migrate crkbd keymaps to oled driver (#17863)
Diffstat (limited to 'keyboards/crkbd/lib/layer_state_reader.c')
-rw-r--r-- | keyboards/crkbd/lib/layer_state_reader.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/keyboards/crkbd/lib/layer_state_reader.c b/keyboards/crkbd/lib/layer_state_reader.c index 63d80b136c..601fd71958 100644 --- a/keyboards/crkbd/lib/layer_state_reader.c +++ b/keyboards/crkbd/lib/layer_state_reader.c @@ -29,7 +29,11 @@ const char *read_layer_state(void) { snprintf(layer_state_str, sizeof(layer_state_str), "Layer: Adjust"); break; default: +#if defined (LAYER_STATE_32BIT) snprintf(layer_state_str, sizeof(layer_state_str), "Layer: Undef-%ld", layer_state); +#else + snprintf(layer_state_str, sizeof(layer_state_str), "Layer: Undef-%d", layer_state); +#endif } return layer_state_str; |