Skip to content

Commit

Permalink
Line 34: Replaced duplicate SA1_LOW_ADDR with SA1_HIGH_ADDR
Browse files Browse the repository at this point in the history
  • Loading branch information
kc13 committed May 5, 2018
1 parent c0f622c commit 4eeb9b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minimu9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ minimu9::comm_config minimu9::auto_detect(const std::string & i2c_bus_name)

// Detect LIS3MDL devices.
{
auto addrs = { lis3mdl::SA1_LOW_ADDR, lis3mdl::SA1_LOW_ADDR };
auto addrs = { lis3mdl::SA1_LOW_ADDR, lis3mdl::SA1_HIGH_ADDR };
for (uint8_t addr : addrs)
{
int result = bus.try_write_byte_and_read_byte(addr, lis3mdl::WHO_AM_I);
Expand Down

0 comments on commit 4eeb9b2

Please sign in to comment.