mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 10:19:29 +02:00
💄 correctly display battery type when using a RS485 battery
This commit is contained in:
parent
a50a20ca1c
commit
e122567c6b
1 changed files with 5 additions and 0 deletions
|
@ -25,8 +25,13 @@ String settings_processor(const String& var) {
|
|||
"<h4 style='color: white;'>Password: ######## <span id='Password'></span> <button "
|
||||
"onclick='editPassword()'>Edit</button></h4>";
|
||||
|
||||
#ifndef RS485_BATTERY_SELECTED
|
||||
content += "<h4 style='color: white;'>Battery interface: <span id='Battery'>" +
|
||||
String(getCANInterfaceName(can_config.battery)) + "</span></h4>";
|
||||
#endif
|
||||
#ifdef RS485_BATTERY_SELECTED
|
||||
content += "<h4 style='color: white;'>Battery interface: RS485<span id='Battery'></span></h4>";
|
||||
#endif
|
||||
|
||||
#ifdef DOUBLE_BATTERY
|
||||
content += "<h4 style='color: white;'>Battery #2 interface: <span id='Battery'>" +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue