Issue #813 - S3 skipped when not available

This commit is contained in:
bsongis
2014-03-20 12:56:14 +01:00
parent 05e2c8bdf3
commit e3fb62b33e
5 changed files with 28 additions and 2 deletions
+1 -1
View File
@@ -725,7 +725,7 @@ void ConvertModel_215_to_216(ModelData &model)
g_model.thrTraceSrc = oldModel.thrTraceSrc;
#if defined(PCBTARANIS)
// S3 added
if (g_model.thrTraceSrc >= 3)
if (g_model.thrTraceSrc >= THROTTLE_SOURCE_S3)
g_model.thrTraceSrc += 1;
#endif
g_model.switchWarningStates = oldModel.switchWarningStates >> 1;