diff options
Diffstat (limited to 'libraries/OBD/OBD.h')
-rw-r--r-- | libraries/OBD/OBD.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libraries/OBD/OBD.h b/libraries/OBD/OBD.h index f5d7e3a..8003fb1 100644 --- a/libraries/OBD/OBD.h +++ b/libraries/OBD/OBD.h @@ -118,9 +118,11 @@ public: // wake up device from previous sleep
virtual void wakeup();
// set working protocol (default auto)
- virtual void setProtocol(OBD_PROTOCOLS h = PROTO_AUTO);
+ virtual bool setProtocol(OBD_PROTOCOLS h = PROTO_AUTO);
// clear diagnostic trouble code
virtual void clearDTC();
+ // get battery voltage (in mV, 12500 for 12.5V, works without ECU)
+ virtual unsigned int getVoltage();
// send query for specified PID
virtual void sendQuery(byte pid);
// retrive and parse the response of specifie PID
|