Network: Mark Main51, OldFormat, and ReadSettings as Internal
parent
595cc36545
commit
0006f31844
|
|
@ -157,12 +157,6 @@ bool Decoder::decode(std::shared_ptr<Message>& result, const std::shared_ptr<Pac
|
||||||
result = frResult;
|
result = frResult;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
default:
|
|
||||||
break;//return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
default:
|
|
||||||
switch(packet->network.getNetID()) {
|
|
||||||
case Network::NetID::Main51: {
|
case Network::NetID::Main51: {
|
||||||
switch((Command)packet->data[0]) {
|
switch((Command)packet->data[0]) {
|
||||||
case Command::RequestSerialNumber: {
|
case Command::RequestSerialNumber: {
|
||||||
|
|
@ -242,7 +236,10 @@ bool Decoder::decode(std::shared_ptr<Message>& result, const std::shared_ptr<Pac
|
||||||
result = msg;
|
result = msg;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// For the moment other types of messages will automatically be decoded as raw messages
|
// For the moment other types of messages will automatically be decoded as raw messages
|
||||||
|
|
|
||||||
|
|
@ -263,10 +263,13 @@ public:
|
||||||
case NetID::MOST150:
|
case NetID::MOST150:
|
||||||
return Type::MOST;
|
return Type::MOST;
|
||||||
case NetID::RED:
|
case NetID::RED:
|
||||||
|
case NetID::RED_OLDFORMAT:
|
||||||
case NetID::Device:
|
case NetID::Device:
|
||||||
case NetID::Reset_Status:
|
case NetID::Reset_Status:
|
||||||
case NetID::DeviceStatus:
|
case NetID::DeviceStatus:
|
||||||
case NetID::FlexRayControl:
|
case NetID::FlexRayControl:
|
||||||
|
case NetID::Main51:
|
||||||
|
case NetID::ReadSettings:
|
||||||
return Type::Internal;
|
return Type::Internal;
|
||||||
case NetID::Invalid:
|
case NetID::Invalid:
|
||||||
case NetID::Any:
|
case NetID::Any:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue