# HG changeset patch # User darius@inchoate.localdomain # Date 1240206726 -28800 # Node ID 3da232f97e810572f97303eba10e0b56ca684963 # Parent 03eba20b5edb7d1322d385fd719757081c0d6d7b Invert the bit mask, we only want to turn off this bit, not everything. diff -r 03eba20b5edb -r 3da232f97e81 ds1307.c --- 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