changeset 123:b2700c7e5492

turn off the fridge port first
author Matt Johnston <matt@ucc.asn.au>
date Wed, 10 Oct 2012 22:50:02 +0800
parents 30c2c3341a4a
children 24e343a3ef93
files main.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/main.c	Wed Oct 10 22:48:24 2012 +0800
+++ b/main.c	Wed Oct 10 22:50:02 2012 +0800
@@ -214,8 +214,8 @@
     DDR_LED |= _BV(PIN_LED);
     DDR_SHDN |= _BV(PIN_SHDN);
 
+    PORT_FRIDGE &= ~_BV(PIN_FRIDGE);
     DDR_FRIDGE |= _BV(PIN_FRIDGE);
-    PORT_FRIDGE &= ~_BV(PIN_FRIDGE);
 
     // set pullup
     PORTD |= _BV(PD2);