Skip to content

Commit cca8094

Browse files
committed
data displayed from logger
1 parent 9e9fd86 commit cca8094

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

logging/logging.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ void Logger::ModCellVolts(const can::messages::Tesla::TSModCellVoltages::CellVol
119119

120120
void Logger::ModVoltTemps(const can::messages::Tesla::TSModVoltTemp::VoltTempData &mod_volt_temp_data)
121121
{
122-
info("volt/temp data received in logger");
122+
std::ostringstream ss;
123+
ss << "Module " << mod_volt_temp_data.module_num << " Voltage: " << mod_volt_temp_data.voltage << " V, Temperatures: " << mod_volt_temp_data.temperatures[0] << " C, " << mod_volt_temp_data.temperatures[1] << " C";
124+
info(ss, __FILENAME__, __LINE__);
123125
}
124126

125127
void Logger::updateDataLog()

0 commit comments

Comments
 (0)