aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/onekey/keymaps/backlight
diff options
context:
space:
mode:
authorGravatar Ryan <fauxpark@gmail.com>2020-06-08 15:49:18 +1000
committerGravatar GitHub <noreply@github.com>2020-06-07 22:49:18 -0700
commit407d6a2b6779aa7ef4f87b53521aef3c3854f824 (patch)
tree1356662030acaa56347ce4b56fab3fd127d8f9fa /keyboards/handwired/onekey/keymaps/backlight
parentd7523c1260d3154a16d223060a24e32d18ebb1a2 (diff)
downloadqmk_firmware-407d6a2b6779aa7ef4f87b53521aef3c3854f824.tar.gz
[Keyboard] Fix error_log complaint about handwired/onekey layout macro (#9263)
Diffstat (limited to 'keyboards/handwired/onekey/keymaps/backlight')
-rw-r--r--keyboards/handwired/onekey/keymaps/backlight/keymap.c45
1 files changed, 22 insertions, 23 deletions
diff --git a/keyboards/handwired/onekey/keymaps/backlight/keymap.c b/keyboards/handwired/onekey/keymaps/backlight/keymap.c
index 1f4be16a6..1fbbc632d 100644
--- a/keyboards/handwired/onekey/keymaps/backlight/keymap.c
+++ b/keyboards/handwired/onekey/keymaps/backlight/keymap.c
@@ -2,39 +2,38 @@
//Tap Dance Declarations
enum {
- TD_BL = 0
+ TD_BL = 0
};
-void dance_cln_finished (qk_tap_dance_state_t *state, void *user_data) {
- // noop
+void dance_cln_finished(qk_tap_dance_state_t *state, void *user_data) {
+ // noop
}
-void dance_cln_reset (qk_tap_dance_state_t *state, void *user_data) {
- switch (state->count) {
- case 1:
- // single tap - step through backlight
- backlight_step();
- break;
+void dance_cln_reset(qk_tap_dance_state_t *state, void *user_data) {
+ switch (state->count) {
+ case 1:
+ // single tap - step through backlight
+ backlight_step();
+ break;
#ifdef BACKLIGHT_BREATHING
- case 2:
- // double tap - toggle breathing
- breathing_toggle();
- break;
- case 3:
- //tripple tap - do some pulse stuff
- breathing_pulse();
- break;
+ case 2:
+ // double tap - toggle breathing
+ breathing_toggle();
+ break;
+ case 3:
+ // triple tap - do some pulse stuff
+ breathing_pulse();
+ break;
#endif
- default:
- // more - nothing
- break;
- }
+ default:
+ break;
+ }
}
qk_tap_dance_action_t tap_dance_actions[] = {
- [TD_BL] = ACTION_TAP_DANCE_FN_ADVANCED (NULL, dance_cln_finished, dance_cln_reset)
+ [TD_BL] = ACTION_TAP_DANCE_FN_ADVANCED(NULL, dance_cln_finished, dance_cln_reset)
};
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
- LAYOUT( TD(TD_BL) )
+ LAYOUT_ortho_1x1(TD(TD_BL))
};