Skip to content

Commit 7b3f40c

Browse files
committed
WIP3
1 parent 15cbb56 commit 7b3f40c

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

logging/logging.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ void Logger::setMonitor(std::vector<monitor::Monitor*> vmonitor)
111111

112112
void Logger::sink(const can::messages::Tesla::Message& message)
113113
{
114-
info("CAN message received in Logger", __FILENAME__, __LINE__);
115114
if (not message.valid()) return;
116115

117116
switch(message.id())
@@ -126,6 +125,15 @@ void Logger::sink(const can::messages::Tesla::Message& message)
126125
}
127126
}
128127

128+
129+
void Logger::passSomeData(uint16_t data)
130+
{
131+
// Implementation for passing some data
132+
info("SomeData message received in Logger", __FILENAME__, __LINE__);
133+
134+
}
135+
136+
129137
// void TeslaSlaveMonitor::process(const TSBatteryStatus& battery_status)
130138
// {
131139

logging/logging.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,8 @@ namespace logging
166166
void enableConsoleLogging();
167167
void enableFileLogging();
168168

169+
void passSomeData(uint16_t data);
170+
169171
// Interfaces to control roll over mechanism
170172
// void updateMaxLogFiles(const ssize_t maxFiles);
171173
// void updateLogSize(const ssize_t size);

monitor/Tesla/TeslaSlaveMonitor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ void TeslaSlaveMonitor::process(const TSBatteryStatus& battery_status)
154154
m_prev_battery_status = status;
155155
updateOperationalSafety();
156156

157-
m_log->info("TeslaSlaveMonitor: Battery Status processed", __FILENAME__, __LINE__);
157+
m_log->passSomeData(status);
158158
}
159159

160160
void TeslaSlaveMonitor::process(const TSVoltages& voltages)

0 commit comments

Comments
 (0)