Skip to content

Commit e3d86d9

Browse files
committed
Merge pull request arduino#294 from Kolbi/patch-3
Update BatteryPoweredSensor.ino
2 parents b91dba8 + e20914c commit e3d86d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libraries/MySensors/examples/BatteryPoweredSensor/BatteryPoweredSensor.ino

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void loop()
6262
{
6363
// get the battery Voltage
6464
int sensorValue = analogRead(BATTERY_SENSE_PIN);
65-
#ifdef DEBUG
65+
#ifdef MY_DEBUG
6666
Serial.println(sensorValue);
6767
#endif
6868

@@ -73,7 +73,7 @@ void loop()
7373

7474
int batteryPcnt = sensorValue / 10;
7575

76-
#ifdef DEBUG
76+
#ifdef MY_DEBUG
7777
float batteryV = sensorValue * 0.003363075;
7878
Serial.print("Battery Voltage: ");
7979
Serial.print(batteryV);

0 commit comments

Comments
 (0)