mirror of
https://github.com/SemvdH/OBD2-car-display.git
synced 2025-12-16 12:41:05 +00:00
add waiting for ELM327 before init state
This commit is contained in:
@@ -33,6 +33,8 @@ Be sure to disconnect the TX and RX pins from the BT module when programming the
|
||||
#ifndef OBD2_ELM327_H
|
||||
#define OBD2_ELM327_H
|
||||
|
||||
#include "ELMduino.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@@ -68,6 +70,7 @@ enum BluetoothState
|
||||
*/
|
||||
typedef struct obt2_elm327_tag
|
||||
{
|
||||
ELM327 *elm327;
|
||||
enum BluetoothState bt_state;
|
||||
void (*on_state_change)();
|
||||
} obd2_elm327_t;
|
||||
|
||||
Reference in New Issue
Block a user