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:
josiahhiggs 2025-01-26 21:56:56 +13:00
parent 08181cc37d
commit 14f944f723
3 changed files with 19 additions and 0 deletions

View file

@ -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;