]> the.earth.li Git - temper-clone.git/blobdiff - main.c
Reset 1-Wire state if we get a USB reset
[temper-clone.git] / main.c
diff --git a/main.c b/main.c
index 0adfed8cc246c636c0180b32bffe295d9fdc20ca..61064a084cbcc45ddf358d7437676c26a2db0155 100644 (file)
--- a/main.c
+++ b/main.c
@@ -358,6 +358,13 @@ usbMsgLen_t usbFunctionWrite(uint8_t * data, uchar len)
        return 0;
 }
 
+void hadUsbReset(void)
+{
+       /* Reset our state machine back to having nothing to send */
+       temp_state = 0;
+       have_temp_int = false;
+}
+
 int main(void)
 {
        unsigned char i;