From 5117cf371d3d242a72cc7e2e911d06300226de5b Mon Sep 17 00:00:00 2001 From: Maurice Makaay Date: Wed, 21 Apr 2021 11:38:12 +0200 Subject: [PATCH] A few small cleanups before merge. --- binary_sensor/touch_binary_sensor.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/binary_sensor/touch_binary_sensor.h b/binary_sensor/touch_binary_sensor.h index 974fe94..97f8144 100644 --- a/binary_sensor/touch_binary_sensor.h +++ b/binary_sensor/touch_binary_sensor.h @@ -27,8 +27,8 @@ public: [this](EVENT ev) { auto part_in_event = ev & FLAG_PART_MASK; if (for_ == 0 || part_in_event == for_) { - auto is_touch = (ev & FLAG_TYPE_MASK) == FLAG_TYPE_TOUCH; - this->publish_state(is_touch); + auto new_state = (ev & FLAG_TYPE_MASK) == FLAG_TYPE_TOUCH; + this->publish_state(new_state); } } ); @@ -44,7 +44,6 @@ public: protected: FrontPanelHAL *front_panel_; - EVENT match_ = 0; EVENT for_ = 0; };