changeset 422:91e3d410ed51

turn off the fridge port first
author Matt Johnston <matt@ucc.asn.au>
date Wed, 10 Oct 2012 22:50:02 +0800
parents 5055caf46064
children d828f409c4ed
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);