mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-25 07:10:43 -04:00
Add ERT commodity type.
This commit is contained in:
parent
6571ef0c11
commit
b7c0efbb64
4 changed files with 56 additions and 11 deletions
|
@ -63,6 +63,16 @@ Consumption Packet::consumption() const {
|
|||
return invalid_consumption;
|
||||
}
|
||||
|
||||
CommodityType Packet::commodity_type() const {
|
||||
if( type() == Type::SCM ) {
|
||||
return reader_.read(5, 4);
|
||||
}
|
||||
if( type() == Type::IDM ) {
|
||||
return reader_.read(4 * 8 + 4, 4);
|
||||
}
|
||||
return invalid_commodity_type;
|
||||
}
|
||||
|
||||
ManchesterFormatted Packet::symbols_formatted() const {
|
||||
return format_manchester(decoder_);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue