Fix T8 unit tests

This commit is contained in:
Raphael Coeffic
2021-12-17 11:24:05 +01:00
parent 710677a1f7
commit 7542e75f1a
+1 -1
View File
@@ -258,7 +258,7 @@ TEST(Conversions, ConversionX7From23)
(0x03 << (3 * 2)) | // SC down
(0x03 << (3 * 4)); // SF down
swarnstate_t sw_mask = (1 << (NUM_SWITCHES * 3)) - 1;
swarnstate_t sw_mask = (1 << (STORAGE_NUM_SWITCHES * 3)) - 1;
// check only the "allowed switches"
EXPECT_EQ(state & sw_mask, g_model.switchWarningState & 0x7FFF);