Fix unit tests for X7 derivates
This commit is contained in:
@@ -258,8 +258,10 @@ TEST(Conversions, ConversionX7From23)
|
||||
(0x03 << (3 * 2)) | // SC down
|
||||
(0x03 << (3 * 4)); // SF down
|
||||
|
||||
swarnstate_t sw_mask = (1 << (NUM_SWITCHES * 3)) - 1;
|
||||
|
||||
// check only the "allowed switches"
|
||||
EXPECT_EQ(state, g_model.switchWarningState & 0x7FFF);
|
||||
EXPECT_EQ(state & sw_mask, g_model.switchWarningState & 0x7FFF);
|
||||
|
||||
EXPECT_STRNEQ("Test", g_model.header.name);
|
||||
EXPECT_EQ(MODULE_TYPE_R9M_PXX1, g_model.moduleData[EXTERNAL_MODULE].type);
|
||||
|
||||
Reference in New Issue
Block a user