Selaa lähdekoodia

Make twi timer local to the wait function

Alex Voinea 3 vuotta sitten
vanhempi
commit
1e0f414d41
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Firmware/twi.cpp

+ 1 - 1
Firmware/twi.cpp

@@ -62,7 +62,7 @@ static void twi_stop()
 
 static uint8_t twi_wait(uint8_t status)
 {
-  static ShortTimer timmy;
+  ShortTimer timmy;
   timmy.start();
   while(!(TWCR & _BV(TWINT))) {
     if (timmy.expired(TWI_TIMEOUT_MS)) {