]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
add a couple of comments
authorPavlos Vinieratos <pvinis@gmail.com>
Tue, 19 Jul 2016 16:02:13 +0000 (18:02 +0200)
committerPavlos Vinieratos <pvinis@gmail.com>
Tue, 19 Jul 2016 16:18:57 +0000 (18:18 +0200)
quantum/process_keycode/process_tap_dance.c

index 58192413fbc6ca1f574bb1c5cbb25022eba8e50b..b9b836df2e97acb5a1f6618cdfaea4b40c6c439a 100644 (file)
@@ -86,6 +86,7 @@ bool process_tap_dance(uint16_t keycode, keyrecord_t *record) {
 
   default:
     if (qk_tap_dance_state.keycode) {
+      // if we are here, the tap dance was interrupted by a different key
       process_tap_dance_action_on_each_tap (qk_tap_dance_state.keycode);
       process_tap_dance_action_on_dance_finished (qk_tap_dance_state.keycode);
       reset_tap_dance (&qk_tap_dance_state);
@@ -98,6 +99,7 @@ bool process_tap_dance(uint16_t keycode, keyrecord_t *record) {
 
 void matrix_scan_tap_dance () {
   if (qk_tap_dance_state.keycode && timer_elapsed (qk_tap_dance_state.timer) > TAPPING_TERM) {
+    // if we are here, the tap dance was timed out
     process_tap_dance_action_on_dance_finished (qk_tap_dance_state.keycode);
     reset_tap_dance (&qk_tap_dance_state);
   }