mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-16 07:23:07 +01:00
correct handling for grove based iic sensors
This commit is contained in:
@@ -103,8 +103,15 @@ void sendN2kTemperature(GwApi *api,CFG &cfg,double value, int counterId){
|
||||
}
|
||||
|
||||
|
||||
|
||||
#define CHECK_IIC1() checkDef(GWIIC_SCL,GWIIC_SDA)
|
||||
#define CHECK_IIC2() checkDef(GWIIC_SCL2,GWIIC_SDA2)
|
||||
#ifndef _GWI_IIC1
|
||||
#define CHECK_IIC1() checkDef(GWIIC_SCL,GWIIC_SDA)
|
||||
#else
|
||||
#define CHECK_IIC1()
|
||||
#endif
|
||||
#ifndef _GWI_IIC2
|
||||
#define CHECK_IIC2() checkDef(GWIIC_SCL2,GWIIC_SDA2)
|
||||
#else
|
||||
#define CHECK_IIC2()
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user