mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-07-11 00:59:50 -04:00
Manchester decoded symbol operator| for accessing bit value.
This commit is contained in:
parent
85ac3fa4ac
commit
5cfd44a546
1 changed files with 5 additions and 0 deletions
|
@ -54,6 +54,11 @@ private:
|
|||
const size_t sense;
|
||||
};
|
||||
|
||||
template<typename T>
|
||||
T operator|(const T& l, const ManchesterDecoder::DecodedSymbol& r) {
|
||||
return l | r.value;
|
||||
}
|
||||
|
||||
struct ManchesterFormatted {
|
||||
const std::string data;
|
||||
const std::string errors;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue