change logging
This commit is contained in:
@@ -83,7 +83,7 @@ uint16_t Battery::voltage()
|
||||
if (activationPin != 0xFF)
|
||||
{
|
||||
digitalWrite(activationPin, activationMode);
|
||||
log_i("activationPin on");
|
||||
log_v("activationPin on");
|
||||
delayMicroseconds(10); // copes with slow switching activation circuits
|
||||
}
|
||||
readFunction(sensePin);
|
||||
@@ -92,9 +92,9 @@ uint16_t Battery::voltage()
|
||||
if (activationPin != 0xFF)
|
||||
{
|
||||
digitalWrite(activationPin, !activationMode);
|
||||
log_i("activationPin off");
|
||||
log_v("activationPin off");
|
||||
}
|
||||
log_i("BatteryRead: %d", reading);
|
||||
log_v("BatteryRead: %d", reading);
|
||||
|
||||
return reading;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user