diff --git a/src/model_menus.cpp b/src/model_menus.cpp index 46f94b46f..c9c76c227 100644 --- a/src/model_menus.cpp +++ b/src/model_menus.cpp @@ -425,7 +425,7 @@ void menuProcModel(uint8_t event) int8_t sec = timer->val%60; sec -= checkIncDecModel(event, sec+2, 1, 62)-2; timer->val -= sec ; - if ((int16_t)timer->val < 0) timer->val=0; + if (((int16_t)timer->val) < 0) timer->val=0; break; } case 3: diff --git a/src/pers.cpp b/src/pers.cpp index 217f37bec..d2794a748 100644 --- a/src/pers.cpp +++ b/src/pers.cpp @@ -283,7 +283,7 @@ void eeLoadModel(uint8_t id) #ifdef SIMU if (sz > 0 && sz != sizeof(g_model)) { - printf("Model data read=%d bytes vs %d bytes\n", sz, sizeof(ModelData)); + printf("Model data read=%d bytes vs %u bytes\n", sz, sizeof(ModelData)); } #endif