Make simulator compile

This commit is contained in:
2023-05-23 02:51:40 +02:00
parent 2347b738c5
commit 5a56ce394f
9 changed files with 29 additions and 9 deletions

View File

@ -92,7 +92,7 @@ void VehicleConfigView::updateSelectedParam(int select) {
}
if (firstWanted < 0) {
firstWanted = 0;
} else if (firstWanted > ParamType_COUNT - 1) {
} else if (firstWanted > (int16_t)(ParamType_COUNT - 1)) {
firstWanted = ParamType_COUNT - 1;
}
params.animateToItem(firstWanted, 0);