Move ERT packet type to its rightful place.

No longer mixed up with Message types.
This commit is contained in:
Jared Boone 2015-12-08 16:19:27 -08:00
parent 7de187e267
commit eb1402764e
5 changed files with 23 additions and 23 deletions

View file

@ -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 += " ";