Browse Source

Extra TWI disable code. Not used yet.

Alex Voinea 3 years ago
parent
commit
0172cbdf8b
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Firmware/twi.cpp

+ 3 - 0
Firmware/twi.cpp

@@ -45,6 +45,9 @@ void twi_init(void)
 
 void twi_disable(void)
 {
+  // disable TWI hardware.
+  TWCR = 0;
+  
   // deactivate internal pullups for twi.
   WRITE(SDA_PIN, 0);
   WRITE(SCL_PIN, 0);