@@ -75,6 +75,8 @@ static key_action_cached_t actionCache[SLOT_COUNT][MAX_KEY_COUNT_PER_MODULE];
7575uint32_t UsbReportUpdater_LastActivityTime ;
7676uint32_t UsbReportUpdater_LastMouseActivityTime ;
7777
78+ key_life_times_t KeyLifeTimes ;
79+
7880
7981
8082
@@ -638,15 +640,13 @@ static void commitKeyState(key_state_t *keyState, bool active, uint8_t pressTime
638640
639641 if (PostponerCore_EventsShouldBeQueued () || forcePostponer ) {
640642 PostponerCore_TrackKeyEvent (keyState , active , 255 );
641- if (DEBUG_KEY_LIFE_ENABLED ) {
642- if (forcePostponer ) {
643- LOG_INF (" %s %d force queued\n" , Utils_KeyStateToKeyAbbreviation (keyState ), active );
644- } else {
645- LOG_INF (" %s %d queued\n" , Utils_KeyStateToKeyAbbreviation (keyState ), active );
646- }
643+ if (forcePostponer ) {
644+ DEBUG_KEY_LIFE (forceQueued );
645+ } else {
646+ DEBUG_KEY_LIFE (queued );
647647 }
648648 } else {
649- DEBUG_KEY_LIFE (LOG_INF ( " %s %d applied\n" , Utils_KeyStateToKeyAbbreviation ( keyState ), active ) );
649+ DEBUG_KEY_LIFE (applied );
650650 KEY_TIMING (KeyTiming_RecordKeystroke (keyState , active , Timer_GetCurrentTime (), Timer_GetCurrentTime ()));
651651 keyState -> current = active ;
652652 }
@@ -759,13 +759,8 @@ static void updateActionStates() {
759759 if (KeyState_NonZero (keyState )) {
760760 Trace_Printc ("w2" );
761761
762- if (DEBUG_KEY_LIFE_ENABLED ) {
763- if (KeyState_ActivatedNow (keyState )) {
764- LOG_INF (" %s %d action\n" , Utils_KeyStateToKeyAbbreviation (keyState ), 1 );
765- }
766- if (KeyState_DeactivatedNow (keyState )) {
767- LOG_INF (" %s %d action\n" , Utils_KeyStateToKeyAbbreviation (keyState ), 0 );
768- }
762+ if (KeyState_ActivatedNow (keyState ) || KeyState_DeactivatedNow (keyState )) {
763+ DEBUG_KEY_LIFE (action );
769764 }
770765
771766 if (KeyState_ActivatedNow (keyState )) {
0 commit comments