Explicitly disable the edge trigger on startup, weird stuff is happening.
authorMalte S. Stretz <mss@apache.org>
Fri, 27 Feb 2009 15:14:53 +0000 (15:14 +0000)
committerMalte S. Stretz <mss@apache.org>
Fri, 27 Feb 2009 15:14:53 +0000 (15:14 +0000)
src/dmx.c

index 2f24e88..6ee6cf4 100644 (file)
--- a/src/dmx.c
+++ b/src/dmx.c
@@ -71,6 +71,8 @@ void dmx_init(void)
 
   // Trigger INT0 on any edge (ISC0 = 01, p67).
   bits_on(MCUCR, ISC00);
+  // But explicitly disable it for now.
+  disable_trigger();
 }
 
 void dmx_exec(void)