From e20914cc1de992c7f36b24b4b1c31a4b492f0048 Mon Sep 17 00:00:00 2001 From: Kolbi Date: Fri, 11 Dec 2015 17:09:46 +0100 Subject: [PATCH] Update BatteryPoweredSensor.ino corrected debug --- .../examples/BatteryPoweredSensor/BatteryPoweredSensor.ino | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/MySensors/examples/BatteryPoweredSensor/BatteryPoweredSensor.ino b/libraries/MySensors/examples/BatteryPoweredSensor/BatteryPoweredSensor.ino index 981db1d..759f64e 100644 --- a/libraries/MySensors/examples/BatteryPoweredSensor/BatteryPoweredSensor.ino +++ b/libraries/MySensors/examples/BatteryPoweredSensor/BatteryPoweredSensor.ino @@ -62,7 +62,7 @@ void loop() { // get the battery Voltage int sensorValue = analogRead(BATTERY_SENSE_PIN); - #ifdef DEBUG + #ifdef MY_DEBUG Serial.println(sensorValue); #endif @@ -73,7 +73,7 @@ void loop() int batteryPcnt = sensorValue / 10; - #ifdef DEBUG + #ifdef MY_DEBUG float batteryV = sensorValue * 0.003363075; Serial.print("Battery Voltage: "); Serial.print(batteryV);