From 5afda5f2ccde0cd2a596df27a371c4ab62a0c254 Mon Sep 17 00:00:00 2001 From: Andrey Date: Sun, 5 Sep 2021 07:25:52 -0400 Subject: [PATCH] SD-card log fields improvement (warning counter & last code) #3162 --- firmware/util/scaled_channel.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/firmware/util/scaled_channel.h b/firmware/util/scaled_channel.h index af8a6c5819..9acf7fa93e 100644 --- a/firmware/util/scaled_channel.h +++ b/firmware/util/scaled_channel.h @@ -34,6 +34,11 @@ public: return m_value / (float)mult; } + // Postfix increment operator + T operator ++(int) { + return (m_value / (float)mult) + 1; + } + constexpr const char* getFirstByteAddr() const { return &m_firstByte; }