Skip to content

Commit

Permalink
fix eeprom test that was using a structure member that was deleted.
Browse files Browse the repository at this point in the history
  • Loading branch information
hydra committed Sep 20, 2016
1 parent 31570fe commit 5eb4336
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/unit/config_eeprom_unittest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -284,16 +284,16 @@ TEST(configTest, modify)
{
resetEEPROM();

imuConfig()->looptime = 123;
imuConfig()->small_angle = 90;
writeEEPROM();

EXPECT_EQ(123, imuConfig()->looptime);
EXPECT_EQ(90, imuConfig()->small_angle);

// overwrite the values with something else before loading
imuConfig()->looptime = 456;
imuConfig()->small_angle = 45;

readEEPROM();
EXPECT_EQ(123, imuConfig()->looptime);
EXPECT_EQ(90, imuConfig()->small_angle);
}

TEST(configTest, modifyProfiles)
Expand Down

0 comments on commit 5eb4336

Please sign in to comment.