Skip to content

Commit

Permalink
Fix incorrect RX handler for USB console
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoeppen committed Jun 11, 2013
1 parent fd8b38a commit 427f195
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions olimexino-stm32/olimexino_stm32.ft
Expand Up @@ -389,8 +389,11 @@ VARIABLE EP0-REQ-LENGTH
: OUT-HANDLER ( ep dir -- )
2DROP
3 DUP EP-CLEAR-CTR-RX
DUP USB-BTABLE-RX
OVER USB-BTABLE-RX# H@ 3FF AND 0 DO DUP @ CON-RX! 1+ LOOP DROP
DUP USB-BTABLE-RX
OVER USB-BTABLE-RX# H@ 3FF AND 0 DO
DUP C@ CON-RX!
DUP 1 AND IF 2 + THEN 1+
LOOP DROP
3 SWAP EP-RX-STATE!
;

Expand Down

0 comments on commit 427f195

Please sign in to comment.