Make header structure compatible with simulator
Currently, the generated Makefile doesn't successfully compile. But it is possible to run the simulator again by manually editing the Makefile.
This commit is contained in:
@ -1,6 +1,5 @@
|
||||
#include "gui/common/NamedField.hpp"
|
||||
#include "gui/containers/ConfigItem.hpp"
|
||||
#include "main.h"
|
||||
#include "params.h"
|
||||
#include <cstdint>
|
||||
#include <gui/vehicleconfig_screen/VehicleConfigView.hpp>
|
||||
@ -76,7 +75,7 @@ void VehicleConfigView::updateSelectedParam(int select) {
|
||||
int16_t firstVisible = firstItem->getType();
|
||||
int16_t lastVisible = lastItem->getType();
|
||||
if (lastVisible < firstVisible) {
|
||||
Error_Handler();
|
||||
return;
|
||||
}
|
||||
int16_t numVisible = lastVisible - firstVisible + 1;
|
||||
if (selectedParam >= firstVisible && selectedParam <= lastVisible) {
|
||||
|
||||
Reference in New Issue
Block a user