stanleyhuangyc / Freematics

Official source code repository for Freematics
https://freematics.com
419 stars 345 forks source link

OBD II when is diconected crash ESP loop #131

Closed rosenvladimirov closed 2 years ago

rosenvladimirov commented 3 years ago

Hire is fiix:

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

stanleyhuangyc commented 2 years ago

Thanks. Will include it.