summaryrefslogtreecommitdiffstats
path: root/keyboard/planck/keymaps/pete/keymap.c
diff options
context:
space:
mode:
authorChristopher Browne <cbbrowne@ca.afilias.info>2016-06-13 16:06:03 -0400
committerChristopher Browne <cbbrowne@ca.afilias.info>2016-06-13 16:06:03 -0400
commitdc9bf78f2b1d7d894576d87ea9bfc86d7bb3deee (patch)
tree44f432118882f9176ef6d901dc3d389d28737254 /keyboard/planck/keymaps/pete/keymap.c
parentd649ab34334ff568448c47a04fcf40f1aa960135 (diff)
parent25d4772754186b8ab6ef86c28049da67a460f123 (diff)
Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware
Diffstat (limited to 'keyboard/planck/keymaps/pete/keymap.c')
-rw-r--r--keyboard/planck/keymaps/pete/keymap.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/keyboard/planck/keymaps/pete/keymap.c b/keyboard/planck/keymaps/pete/keymap.c
index 57cab65a31..fb2d9692d0 100644
--- a/keyboard/planck/keymaps/pete/keymap.c
+++ b/keyboard/planck/keymaps/pete/keymap.c
@@ -21,6 +21,7 @@ extern keymap_config_t keymap_config;
#define _RAISE 4
#define _FCT 5
#define _SETUP 6
+#define _MUSIC 7
#define _MICMUTE 16
// Macro name shortcuts
@@ -209,7 +210,7 @@ void play_goodbye_tone()
uint8_t starting_note = 0x0C;
int offset = 0;
-void process_action_user(keyrecord_t *record) {
+bool process_action_user(keyrecord_t *record) {
if (IS_LAYER_ON(_MUSIC)) {
if (record->event.pressed) {
@@ -217,7 +218,8 @@ void process_action_user(keyrecord_t *record) {
} else {
stop_note(((double)220.0)*pow(2.0, -4.0)*pow(2.0,(starting_note + SCALE[record->event.key.col + offset])/12.0+(MATRIX_ROWS - record->event.key.row)));
}
+ return false;
}
-
+ return true;
}
#endif