changeset 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 03eba20b5edb
children d111f64eb619
files ds1307.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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