summaryrefslogtreecommitdiff
path: root/keyboards/claw44/lib/layer_state_reader.c
diff options
context:
space:
mode:
authoryfuku <30647434+yfuku@users.noreply.github.com>2020-11-10 14:07:12 +0900
committerGitHub <noreply@github.com>2020-11-10 16:07:12 +1100
commit7595f538562437fa6d13ede5be7a5a4b5d582c6b (patch)
tree8649d7399f8f5c5699a7a07cb85a38840d73cf3c /keyboards/claw44/lib/layer_state_reader.c
parent8af767cb1d36222a4d0ec8286d346d4896e923d4 (diff)
refactor SPLIT_KEYBOARD, OLED_DRIVER_ENABLE (#10405)
Diffstat (limited to 'keyboards/claw44/lib/layer_state_reader.c')
-rw-r--r--keyboards/claw44/lib/layer_state_reader.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/keyboards/claw44/lib/layer_state_reader.c b/keyboards/claw44/lib/layer_state_reader.c
deleted file mode 100644
index d92b6df582..0000000000
--- a/keyboards/claw44/lib/layer_state_reader.c
+++ /dev/null
@@ -1,35 +0,0 @@
-
-#include QMK_KEYBOARD_H
-#include <stdio.h>
-#include "claw44.h"
-
-#define L_BASE 0
-#define L_LOWER (1<<_LOWER)
-#define L_RAISE (1<<_RAISE)
-#define L_ADJUST (1<<_ADJUST)
-#define L_ADJUST_TRI (L_ADJUST|L_RAISE|L_LOWER)
-
-char layer_state_str[24];
-
-const char *read_layer_state(void) {
- switch (layer_state)
- {
- case L_BASE:
- snprintf(layer_state_str, sizeof(layer_state_str), "Layer: Default");
- break;
- case L_RAISE:
- snprintf(layer_state_str, sizeof(layer_state_str), "Layer: Raise");
- break;
- case L_LOWER:
- snprintf(layer_state_str, sizeof(layer_state_str), "Layer: Lower");
- break;
- case L_ADJUST:
- case L_ADJUST_TRI:
- snprintf(layer_state_str, sizeof(layer_state_str), "Layer: Adjust");
- break;
- default:
- snprintf(layer_state_str, sizeof(layer_state_str), "Layer: Undef-%ld", layer_state);
- }
-
- return layer_state_str;
-}