mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-09 23:53:04 -04:00
Only show ERT packets that pass CRC check.
This commit is contained in:
parent
b61ed7dce2
commit
c38beb70e5
1 changed files with 1 additions and 3 deletions
|
@ -124,7 +124,7 @@ bool ERTModel::on_packet(const ert::Packet& packet) {
|
||||||
log_file.write_entry(packet.received_at(), formatted.data + "/" + formatted.errors);
|
log_file.write_entry(packet.received_at(), formatted.data + "/" + formatted.errors);
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return packet.crc_ok();
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace ui {
|
namespace ui {
|
||||||
|
@ -161,7 +161,6 @@ void ERTView::on_packet(const ert::Packet& packet) {
|
||||||
msg += to_string_dec_uint(packet.id(), 10);
|
msg += to_string_dec_uint(packet.id(), 10);
|
||||||
msg += " ";
|
msg += " ";
|
||||||
msg += to_string_dec_uint(packet.consumption(), 10);
|
msg += to_string_dec_uint(packet.consumption(), 10);
|
||||||
msg += packet.crc_ok() ? " *" : " x";
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ERTPacket::Type::IDM:
|
case ERTPacket::Type::IDM:
|
||||||
|
@ -169,7 +168,6 @@ void ERTView::on_packet(const ert::Packet& packet) {
|
||||||
msg += to_string_dec_uint(packet.id(), 10);
|
msg += to_string_dec_uint(packet.id(), 10);
|
||||||
msg += " ";
|
msg += " ";
|
||||||
msg += to_string_dec_uint(packet.consumption(), 10);
|
msg += to_string_dec_uint(packet.consumption(), 10);
|
||||||
msg += packet.crc_ok() ? " *" : " x";
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue