Test custom function play.name

This commit is contained in:
Raphael Coeffic
2021-06-05 20:29:09 +02:00
committed by Raphael Coeffic
parent 599bbdf314
commit 76085baec9
3 changed files with 2 additions and 6 deletions
@@ -117,12 +117,6 @@ void convertModelData_219_to_220(ModelData &model)
}
// CustomFunctionData::play.name
for (uint8_t i = 0; i < MAX_SPECIAL_FUNCTIONS_219; ++i) {
CustomFunctionData* cfn = &(model.customFn[i]);
if (cfn->func == FUNC_PLAY_TRACK || cfn->func == FUNC_BACKGND_MUSIC) {
convertToStr(cfn->play.name, LEN_FUNCTION_NAME_219);
}
}
// GVarData::name ?
for (uint8_t i=0; i<MAX_GVARS_219; ++i) {
+2
View File
@@ -77,6 +77,8 @@ TEST(Conversions, ConversionX9DPFrom23)
EXPECT_EQ(10, g_model.telemetrySensors[0].id);
EXPECT_EQ(10, g_model.telemetrySensors[0].frskyInstance.physID);
EXPECT_EQ(MIXSRC_FIRST_TELEM, g_model.logicalSw[0].v1);
EXPECT_STREQ("abc.wav", g_model.customFn[1].play.name);
}
#endif
Binary file not shown.