Merge pull request #294 from Kolbi/patch-3

Update BatteryPoweredSensor.ino
This commit is contained in:
tekka007
2015-12-15 14:49:54 +01:00
@@ -62,7 +62,7 @@ void loop()
{ {
// get the battery Voltage // get the battery Voltage
int sensorValue = analogRead(BATTERY_SENSE_PIN); int sensorValue = analogRead(BATTERY_SENSE_PIN);
#ifdef DEBUG #ifdef MY_DEBUG
Serial.println(sensorValue); Serial.println(sensorValue);
#endif #endif
@@ -73,7 +73,7 @@ void loop()
int batteryPcnt = sensorValue / 10; int batteryPcnt = sensorValue / 10;
#ifdef DEBUG #ifdef MY_DEBUG
float batteryV = sensorValue * 0.003363075; float batteryV = sensorValue * 0.003363075;
Serial.print("Battery Voltage: "); Serial.print("Battery Voltage: ");
Serial.print(batteryV); Serial.print(batteryV);