mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-15 08:27:44 +00:00
Manchester decoded symbol operator| for accessing bit value.
This commit is contained in:
@@ -54,6 +54,11 @@ private:
|
|||||||
const size_t sense;
|
const size_t sense;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template<typename T>
|
||||||
|
T operator|(const T& l, const ManchesterDecoder::DecodedSymbol& r) {
|
||||||
|
return l | r.value;
|
||||||
|
}
|
||||||
|
|
||||||
struct ManchesterFormatted {
|
struct ManchesterFormatted {
|
||||||
const std::string data;
|
const std::string data;
|
||||||
const std::string errors;
|
const std::string errors;
|
||||||
|
Reference in New Issue
Block a user