Skip to content

Commit

Permalink
Remove debugging statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
tzarc committed Mar 9, 2024
1 parent d4eda06 commit 5bf5fc1
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions quantum/encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
#include "action.h"
#include "encoder.h"
#include "wait.h"
#include "debug.h"

#ifndef ENCODER_MAP_KEY_DELAY
# define ENCODER_MAP_KEY_DELAY TAP_CODE_DELAY
Expand All @@ -24,7 +23,6 @@ void encoder_init(void) {
}

static void encoder_queue_drain(void) {
// dprintf("Draining encoder queue\n");
encoder_events.tail = encoder_events.head;
encoder_events.dequeued = encoder_events.enqueued;
}
Expand Down Expand Up @@ -114,8 +112,6 @@ bool encoder_queue_event_advanced(encoder_events_t *events, uint8_t index, bool
events->head = (events->head + 1) % MAX_QUEUED_ENCODER_EVENTS;
events->enqueued++;

// dprintf("Enqueued event: %d %s [h=%d,t=%d,e=%d,d=%d]\n", (int)index, clockwise ? "CW" : "CCW", (int)events->head, (int)events->tail, (int)events->enqueued, (int)events->dequeued);

return true;
}

Expand All @@ -133,8 +129,6 @@ bool encoder_dequeue_event_advanced(encoder_events_t *events, uint8_t *index, bo
events->tail = (events->tail + 1) % MAX_QUEUED_ENCODER_EVENTS;
events->dequeued++;

// dprintf("Dequeued event: %d %s [h=%d,t=%d,e=%d,d=%d]\n", (int)*index, *clockwise ? "CW" : "CCW", (int)events->head, (int)events->tail, (int)events->enqueued, (int)events->dequeued);

return true;
}

Expand Down

0 comments on commit 5bf5fc1

Please sign in to comment.