Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
deanlee committed Jun 12, 2024
1 parent c3367d0 commit 986dd5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion can/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class CANParser {
void query_latest(std::vector<SignalValue> &vals, uint64_t last_ts = 0);

protected:
void update_can(const CanData &can);
void updateCans(const CanData &can);
void UpdateValid(uint64_t nanos);
};

Expand Down
5 changes: 2 additions & 3 deletions can/parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include <cassert>
#include <cstring>
#include <limits>
#include <numeric>
#include <stdexcept>
#include <sstream>

Expand Down Expand Up @@ -169,14 +168,14 @@ void CANParser::update(const std::vector<CanData> &can_data, std::vector<SignalV
}
last_nanos = c.nanos;

update_can(c);
updateCans(c);
UpdateValid(last_nanos);
}

query_latest(vals, current_nanos);
}

void CANParser::update_can(const CanData &can) {
void CANParser::updateCans(const CanData &can) {
bool bus_empty = true;
for (const auto &frame : can.frames) {
if (frame.src != bus) {
Expand Down

0 comments on commit 986dd5d

Please sign in to comment.