From: Christian Pointner Date: Sun, 14 Mar 2010 18:25:59 +0000 (+0000) Subject: fixed serial init X-Git-Url: https://git.realraum.at/?a=commitdiff_plain;h=01d1e843ebefd15eede53ec06381f8aa483558bd;p=svn42.git fixed serial init --- 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;