Adding ability to configure Can Addon frequency in common image

This commit is contained in:
Matt Holmes 2025-08-22 11:23:32 +01:00
parent eb047badfd
commit 4e0ea84fad
5 changed files with 20 additions and 1 deletions

View file

@ -500,6 +500,10 @@ String settings_processor(const String& var, BatteryEmulatorSettingsStore& setti
return settings.getBool("INVICNT") ? "checked" : "";
}
if (var == "CANFREQ") {
return String(settings.getUInt("CANFREQ", 8));
}
return String();
}
@ -823,6 +827,9 @@ const char* getCANInterfaceName(CAN_Interface interface) {
</select>
</div>
<label>Can Addon Frequency: </label>
<input name='CANFREQ' type='text' value="%CANFREQ%" pattern="^[0-9]+$" />
<label>Equipment stop button: </label><select name='EQSTOP'>
%EQSTOP%
</select>