parent
5c8bb5aa71
commit
a1064ac20b
|
@ -510,11 +510,11 @@ void Keyboard_::releaseAll(void)
|
||||||
|
|
||||||
size_t Keyboard_::write(uint8_t c)
|
size_t Keyboard_::write(uint8_t c)
|
||||||
{
|
{
|
||||||
uint8_t p = press(c); // Keydown
|
uint8_t p = press(c); // Keydown
|
||||||
uint8_t r = release(c); // Keyup
|
release(c); // Keyup
|
||||||
return (p); // just return the result of press() since release() almost always returns 1
|
return p; // just return the result of press() since release() almost always returns 1
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* if defined(USBCON) */
|
#endif /* if defined(USBCON) */
|
||||||
|
|
|
@ -274,7 +274,6 @@ int USB_Send(u8 ep, const void* d, int len)
|
||||||
|
|
||||||
int r = len;
|
int r = len;
|
||||||
const u8* data = (const u8*)d;
|
const u8* data = (const u8*)d;
|
||||||
u8 zero = ep & TRANSFER_ZERO;
|
|
||||||
u8 timeout = 250; // 250ms timeout on send? TODO
|
u8 timeout = 250; // 250ms timeout on send? TODO
|
||||||
while (len)
|
while (len)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue