Skip to content

Commit

Permalink
Dont replay shutdown packets.
Browse files Browse the repository at this point in the history
  • Loading branch information
lolwheel committed Aug 1, 2022
1 parent 3d2d382 commit c39d3b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/bms/bms_relay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ void BmsRelay::maybeReplayPackets() {
}
std::vector<uint8_t> data_copy(stat.last_seen_valid_packet);
Packet p(&data_copy[0], data_copy.size());
// Temporary workaround not to re-broadcast shutdown packet.
if (p.getType() == 11) {
return;
}
ingestPacket(p);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/network.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ AsyncWebSocket ws("/rawdata");
const String defaultPass("****");
BmsRelay *relay;

const String owie_version = "1.4.0";
const String owie_version = "1.4.2";

String renderPacketStatsTable() {
String result(
Expand Down

0 comments on commit c39d3b3

Please sign in to comment.