Skip to content

Commit

Permalink
added a temp delay fix
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossless committed Apr 7, 2024
1 parent 66d875c commit c2782db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/platform/sh68f90a/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "../../smk/utils.h"
#include "../../smk/usbhidreport.h"
#include "../../smk/keyboard.h"
#include "../../platform/sh68f90a/delay.h"
#include <stdint.h>
#include <string.h>

Expand Down Expand Up @@ -354,6 +355,9 @@ void usb_send_report(report_keyboard_t *report)

SET_EP1_CNT(8);
SET_EP1_IN_RDY;

// TODO: this function should be blocking until transaction is finished, instead of a delay
delay_ms(10);
}

static void usb_setup_irq()
Expand Down
4 changes: 0 additions & 4 deletions src/smk/matrix.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ inline void process_key_state(uint8_t row, uint8_t col, bool pressed)
{
uint16_t qcode = keymaps[0][row][col];

// TODO: replace this with an actual delay so that each key change can be queued
// otherwise this cause key registration issues
dprintf("WAIT WAIT WAIT");

if (IS_QK_MOMENTARY(qcode)) {
if (pressed) {
action_layer = QK_MOMENTARY_GET_LAYER(qcode);
Expand Down

0 comments on commit c2782db

Please sign in to comment.