WebUI improvement to prevent empty fields

This commit is contained in:
Marcel Peterkau 2022-08-19 08:34:37 +02:00
parent 3048c6c2a1
commit 01ba4b7333

View File

@ -64,13 +64,17 @@ String processor(const String &var)
return String(LubeConfig.BleedingPulses);
if (var == "SPEED_SOURCE")
return String(SpeedSourceString[LubeConfig.SpeedSource]);
#ifdef FEATURE_ENABLE_GPS
if (var == "GPS_BAUD")
#ifdef FEATURE_ENABLE_GPS
return String(GPSBaudRateString[LubeConfig.GPSBaudRate]);
#else
return "Feature N/A";
#endif
#ifdef FEATURE_ENABLE_CAN
if (var == "CAN_SOURCE")
#ifdef FEATURE_ENABLE_CAN
return String(CANSourceString[LubeConfig.CANSource]);
#else
return "Feature N/A";
#endif
if (var == "CONFIG_CHECKSUM")
{