I experienced something similar and I think fix from github fixed it:
Code: Select all
#if ENABLE_OBD
if (sys.devType > 12) {
batteryVoltage = (float)(analogRead(A0) * 12 * 370) / 4095;
} else if (state.check(STATE_OBD_READY)) {
batteryVoltage = obd.getVoltage() * 100;
}
if (batteryVoltage) {
buffer->add(PID_BATTERY_VOLTAGE, (int)batteryVoltage);
}
#endif