Seeed-Studio / Seeed_SHT35

MIT License
7 stars 7 forks source link

err_t definition conflicts with nRF52 BSP #11

Open Kongduino opened 1 year ago

Kongduino commented 1 year ago

In the Arduino BSP for nRF52 – which Xiao BLE uses – err_t is defined as uint32_t, whereas in this library it is defined as:

typedef enum {
  NO_ERROR = 0,
  ERROR_PARAM = -1,
  ERROR_COMM = -2,
  ERROR_OTHERS = -128,
} err_t;

As a quickie, I changed the name of the enum, and all references to it, to err_tp. The example now compiles on Xiao BLE. I also had to add a #define for the I2C pins:

#define SDAPIN PIN_WIRE_SDA
#define SCLPIN PIN_WIRE_SCL
latolukasz commented 10 months ago

I have the same issue with xiao esp32 s3