From b2de5d47dd917ccb65dad424fbafb417fe44a7bd Mon Sep 17 00:00:00 2001 From: Proddy Date: Sun, 3 Apr 2022 13:43:24 +0200 Subject: [PATCH] small code changes --- src/emsdevicevalue.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/emsdevicevalue.h b/src/emsdevicevalue.h index dee8f3570..5d6ac776e 100644 --- a/src/emsdevicevalue.h +++ b/src/emsdevicevalue.h @@ -168,20 +168,20 @@ class DeviceValue { , state(state) { } - bool hasValue(); + bool hasValue() const; bool get_min_max(int16_t & dv_set_min, int16_t & dv_set_max); // state flags - inline void add_state(uint8_t s) { + void add_state(uint8_t s) { state |= s; } - inline bool has_state(uint8_t s) const { + bool has_state(uint8_t s) const { return (state & s) == s; } - inline void remove_state(uint8_t s) { + void remove_state(uint8_t s) { state &= ~s; } - inline uint8_t get_state() const { + uint8_t get_state() const { return state; }