mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-03 17:59:27 +02:00
Make CAN-FD frequence configurable
This commit is contained in:
parent
bf7d10c825
commit
454a4565c0
5 changed files with 26 additions and 4 deletions
|
@ -637,6 +637,10 @@ String settings_processor(const String& var, BatteryEmulatorSettingsStore& setti
|
|||
return String(settings.getUInt("CANFREQ", 8));
|
||||
}
|
||||
|
||||
if (var == "CANFDFREQ") {
|
||||
return String(settings.getUInt("CANFDFREQ", 40));
|
||||
}
|
||||
|
||||
if (var == "PRECHGMS") {
|
||||
return String(settings.getUInt("PRECHGMS", 100));
|
||||
}
|
||||
|
@ -1079,8 +1083,11 @@ const char* getCANInterfaceName(CAN_Interface interface) {
|
|||
</select>
|
||||
</div>
|
||||
|
||||
<label>Can-addon frequency Mhz: </label>
|
||||
<label>CAN addon crystal (Mhz): </label>
|
||||
<input name='CANFREQ' type='text' value="%CANFREQ%" pattern="^[0-9]+$" />
|
||||
|
||||
<label>CAN-FD-addon crystal (Mhz): </label>
|
||||
<input name='CANFDFREQ' type='text' value="%CANFDFREQ%" pattern="^[0-9]+$" />
|
||||
|
||||
<label>Equipment stop button: </label><select name='EQSTOP'>
|
||||
%EQSTOP%
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue