mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-05 10:49:42 +02:00
Update TESLA-BATTERY.h
added inline const char* to TESLA-BATTERY.h and include in advanced battery to utilize inline const char*
This commit is contained in:
parent
08181cc37d
commit
14f944f723
3 changed files with 19 additions and 0 deletions
|
@ -456,6 +456,7 @@ String advanced_battery_processor(const String& var) {
|
|||
#endif //BYD_ATTO_3_BATTERY
|
||||
|
||||
#ifdef TESLA_BATTERY
|
||||
#include "TESLA-BATTERY.h"
|
||||
float beginning_of_life = static_cast<float>(datalayer_extended.tesla.battery_beginning_of_life);
|
||||
float battTempPct = static_cast<float>(datalayer_extended.tesla.battery_battTempPct) * 0.4;
|
||||
float dcdcLvBusVolt = static_cast<float>(datalayer_extended.tesla.battery_dcdcLvBusVolt) * 0.0390625;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue