diff ds1307.h @ 8:119688bb743f

Don't spin forever waiting for the TWI hardware to do something. I _think_ this will help the case where I find the micro is hanging but I haven't seen an error from it yet.
author darius@dons.net.au
date Fri, 01 May 2009 15:21:31 +0930
parents 3879f487b661
children b5e4591b6570
line wrap: on
line diff
--- a/ds1307.h	Mon Apr 20 14:05:20 2009 +0800
+++ b/ds1307.h	Fri May 01 15:21:31 2009 +0930
@@ -30,6 +30,7 @@
 #define IIC_FAILARB	-2
 #define IIC_SLNAK	-3
 #define IIC_NOREPLY	-4
+#define IIC_NORESP	-5
 #define IIC_UNKNOWN	-99
 
 #define DS1307_ADR	0xd0	// DS1307's TWI address