fix displaying bluetooth state and add waiting for elm327 connection

This commit is contained in:
Sem van der Hoeven
2024-01-21 13:17:31 +01:00
parent e464d0cdfe
commit 3f19ab4b7d
3 changed files with 29 additions and 32 deletions

View File

@@ -76,8 +76,9 @@ typedef struct obt2_elm327_tag
* @brief initializes the bluetooth module driver
*
* @param elm327 pointer to struct holding bluetooth driver data
* @returns 1 if successfully initialized, 0 if not.
*/
void obd2_elm327_init(obd2_elm327_t *elm327);
char obd2_elm327_init(obd2_elm327_t *elm327);
/**
* @brief processes the bluetooth module communication with the OBD2 reader