From 705244786eb4ed5eca15cad2ea9b65fc780695f1 Mon Sep 17 00:00:00 2001 From: Jordan Sherer Date: Thu, 12 Jul 2018 16:35:00 -0400 Subject: [PATCH] Add bits accessor for decodedtext --- decodedtext.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/decodedtext.h b/decodedtext.h index 4780b94..6aca30e 100644 --- a/decodedtext.h +++ b/decodedtext.h @@ -50,6 +50,8 @@ public: bool isLowConfidence () const; int frequencyOffset() const; // hertz offset from the tuned dial or rx frequency, aka audio frequency int snr() const; + bool hasBits() const { return !string_.right(5).trimmed().isEmpty(); } + int bits() const { return string_.right(5).trimmed().toShort(); } float dt() const; // find and extract any report. Returns true if this is a standard message