mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 17:59:27 +02:00
Adding ability to configure Can Addon frequency in common image
This commit is contained in:
parent
eb047badfd
commit
4e0ea84fad
5 changed files with 20 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue