diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-12-25 13:38:05 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-12-25 13:38:05 +0100 |
commit | 6134ad40502d40b9e5db8dafa13a5fbfb5f75230 (patch) | |
tree | d114df2e56759161bce168faf934fa7c64c90f32 | |
parent | 43084ffa34169369e4371fe5edac8790839b170b (diff) |
Firmware: Always send proper stop conditions
-rw-r--r-- | firmware/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/main.c b/firmware/main.c index 1da4bd6..85ae808 100644 --- a/firmware/main.c +++ b/firmware/main.c @@ -50,6 +50,8 @@ USB_PUBLIC uchar usbFunctionSetup(uchar data[8]) return 0; } if (rq->bRequest == USBCMD_STOP) { + DDRB |= bv_sda; + _delay_us(100); DDRB &= ~bv_scl; _delay_us(100); DDRB &= ~bv_sda; |