xt_usb: Fix warning on switch-case
This commit is contained in:
parent
acbea7fb15
commit
1fc989947a
1 changed files with 2 additions and 2 deletions
|
|
@ -94,7 +94,7 @@ ISR(XT_INT_VECT)
|
||||||
* https://github.com/tmk/tmk_keyboard/wiki/IBM-PC-XT-Keyboard-Protocol
|
* https://github.com/tmk/tmk_keyboard/wiki/IBM-PC-XT-Keyboard-Protocol
|
||||||
*/
|
*/
|
||||||
static enum {
|
static enum {
|
||||||
START, BIT0, BIT1, BIT2, BIT3, BIT4, BIT5, BIT6, BIT7, END
|
START, BIT0, BIT1, BIT2, BIT3, BIT4, BIT5, BIT6, BIT7
|
||||||
} state = START;
|
} state = START;
|
||||||
static uint8_t data = 0;
|
static uint8_t data = 0;
|
||||||
|
|
||||||
|
|
@ -114,7 +114,7 @@ ISR(XT_INT_VECT)
|
||||||
data |= 0x80;
|
data |= 0x80;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (++state == END) {
|
if (state++ == BIT7) {
|
||||||
pbuf_enqueue(data);
|
pbuf_enqueue(data);
|
||||||
state = START;
|
state = START;
|
||||||
data = 0;
|
data = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue