Skip to content

Commit

Permalink
Fixes test case
Browse files Browse the repository at this point in the history
  • Loading branch information
GOB52 committed Jan 21, 2025
1 parent 010b41c commit 41688fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/embedded/weight_template.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,11 @@ TEST_P(TestWeightI2C, ChageI2CAddress)
EXPECT_FALSE(unit->changeI2CAddress(0x07)); // Invalid
EXPECT_FALSE(unit->changeI2CAddress(0x78)); // Invalid

// Change to 0x08
EXPECT_TRUE(unit->changeI2CAddress(0x08));
// Change to 0x10
EXPECT_TRUE(unit->changeI2CAddress(0x10));
EXPECT_TRUE(unit->readI2CAddress(addr));
EXPECT_EQ(addr, 0x08);
EXPECT_EQ(unit->address(), 0x08);
EXPECT_EQ(addr, 0x10);
EXPECT_EQ(unit->address(), 0x10);

// Change to 0x77
EXPECT_TRUE(unit->changeI2CAddress(0x77));
Expand Down

0 comments on commit 41688fc

Please sign in to comment.