mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-04 21:29:36 -04:00
Move ERT packet type to its rightful place.
No longer mixed up with Message types.
This commit is contained in:
parent
7de187e267
commit
eb1402764e
5 changed files with 23 additions and 23 deletions
|
@ -81,14 +81,14 @@ void ERTView::on_hide() {
|
|||
void ERTView::on_packet(const ert::Packet& packet) {
|
||||
std::string msg;
|
||||
switch(packet.type()) {
|
||||
case ERTPacketMessage::Type::SCM:
|
||||
case ert::Packet::Type::SCM:
|
||||
msg += "SCM ";
|
||||
msg += to_string_dec_uint(packet.id(), 10);
|
||||
msg += " ";
|
||||
msg += to_string_dec_uint(packet.consumption(), 10);
|
||||
break;
|
||||
|
||||
case ERTPacketMessage::Type::IDM:
|
||||
case ert::Packet::Type::IDM:
|
||||
msg += "IDM ";
|
||||
msg += to_string_dec_uint(packet.id(), 10);
|
||||
msg += " ";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue