From 01d1e843ebefd15eede53ec06381f8aa483558bd Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 14 Mar 2010 18:25:59 +0000 Subject: [PATCH] fixed serial init --- rf433ctl/rf433ctl.pde | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rf433ctl/rf433ctl.pde b/rf433ctl/rf433ctl.pde index 915f298..2cf589a 100644 --- a/rf433ctl/rf433ctl.pde +++ b/rf433ctl/rf433ctl.pde @@ -289,6 +289,8 @@ void setup() pinMode(PANIC_BUTTON_PIN, INPUT); // set pin to input digitalWrite(PANIC_BUTTON_PIN, HIGH); // turn on pullup resistors analogWrite(BLUELED_PWM_PIN,0); + + Serial.begin(9600); onewire.reset(); onewire.reset_search(); @@ -296,9 +298,7 @@ void setup() //in case we change temp sensor: if (!dallas_sensors.getAddress(onShieldTemp, 0)) Serial.println("Error: Unable to find address for Device 0"); - dallas_sensors.setResolution(onShieldTemp, 9); - - Serial.begin(9600); + dallas_sensors.setResolution(onShieldTemp, 9); } unsigned int ir_time=IR_SAMPLE_DURATION; -- 1.7.10.4