Skip to content

Commit

Permalink
Fixed SensorBHI260AP address
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Oct 9, 2023
1 parent 0ccabdf commit 26040aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SensorBHI260AP.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class SensorBHI260AP
{
friend class BoschParse;
public:
SensorBHI260AP(PLATFORM_WIRE_TYPE &w, int sda = DEFAULT_SDA, int scl = DEFAULT_SCL, uint8_t addr = BHI260AP_SLAVE_ADDRESS)
SensorBHI260AP(PLATFORM_WIRE_TYPE &w, int sda = DEFAULT_SDA, int scl = DEFAULT_SCL, uint8_t addr = BHI260AP_SLAVE_ADDRESS_L)
{
__handler.u.i2c_dev.scl = scl;
__handler.u.i2c_dev.sda = sda;
Expand Down Expand Up @@ -79,7 +79,7 @@ class SensorBHI260AP

}

bool init(PLATFORM_WIRE_TYPE &w, int sda = DEFAULT_SDA, int scl = DEFAULT_SCL, uint8_t addr = BHI260AP_SLAVE_ADDRESS)
bool init(PLATFORM_WIRE_TYPE &w, int sda = DEFAULT_SDA, int scl = DEFAULT_SCL, uint8_t addr = BHI260AP_SLAVE_ADDRESS_L)
{
__handler.u.i2c_dev.scl = scl;
__handler.u.i2c_dev.sda = sda;
Expand Down

0 comments on commit 26040aa

Please sign in to comment.