From cc2b834e2d6673ac067490819385f3f7fcbddcd9 Mon Sep 17 00:00:00 2001 From: R Date: Sat, 13 Apr 2024 03:38:16 +0100 Subject: [PATCH] did this fix flakiness on linux? --- bootloader.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/bootloader.c b/bootloader.c index d242ff6..983094d 100644 --- a/bootloader.c +++ b/bootloader.c @@ -207,12 +207,8 @@ __attribute__((naked)) int main(void) { set_ep_mode(0, 0b01, 0b01, 0); // STALL for both } } else { - switch (master_state >> 24) { - case STATE_CTRL_STATUS_OUT: - // back to stall for everything, expect SETUP - set_ep_mode(0, 0b01, 0b01, 0); // STALL for both - break; - } + // back to stall for everything, expect SETUP + set_ep_mode(0, 0b01, 0b01, 0); // STALL for both } } if ((usb_int_status & 0x1f) == 0x00) {