From 5cfd44a546c3f3f45308eab7e86a70d58104ac2c Mon Sep 17 00:00:00 2001 From: Jared Boone Date: Sun, 6 Dec 2015 15:22:52 -0800 Subject: [PATCH] Manchester decoded symbol operator| for accessing bit value. --- firmware/application/manchester.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/firmware/application/manchester.hpp b/firmware/application/manchester.hpp index 5e965c854..93d902170 100644 --- a/firmware/application/manchester.hpp +++ b/firmware/application/manchester.hpp @@ -54,6 +54,11 @@ private: const size_t sense; }; +template +T operator|(const T& l, const ManchesterDecoder::DecodedSymbol& r) { + return l | r.value; +} + struct ManchesterFormatted { const std::string data; const std::string errors;