diff ds1307.c @ 6:3da232f97e81

Invert the bit mask, we only want to turn off this bit, not everything.
author darius@inchoate.localdomain
date Mon, 20 Apr 2009 13:52:06 +0800
parents 15d89caaf516
children 119688bb743f
line wrap: on
line diff
--- a/ds1307.c	Thu Mar 12 16:30:58 2009 +1030
+++ b/ds1307.c	Mon Apr 20 13:52:06 2009 +0800
@@ -47,7 +47,7 @@
 int
 ds1307_init(void) {
 #ifdef PRR
-    PRR &= _BV(PRTWI);		/* Power TWI on - note that the
+    PRR &= ~_BV(PRTWI);		/* Power TWI on - note that the
 				 * datasheet says this is already 0 at
 				 * power on.. */
 #endif