[ARM] Better import of existing switch warnings

This commit is contained in:
Andre Bernet
2013-11-30 11:49:57 +01:00
parent b13fbade78
commit ea98552365
+1
View File
@@ -422,6 +422,7 @@ void ConvertModel_215_to_216(ModelData &model)
}
g_model.thrTraceSrc = oldModel.thrTraceSrc;
g_model.switchWarningStates = oldModel.switchWarningStates >> 1;
g_model.nSwToWarn = (oldModel.switchWarningStates & 0x01) ? 0xFF : 0;
for (uint8_t i=0; i<5; i++) {
memcpy(g_model.gvars[i].name, oldModel.gvar_names[i], LEN_GVAR_NAME);
}