From 99af859e1375b573be624a8624c9db6520d13fa1 Mon Sep 17 00:00:00 2001 From: Erwin Ried <1091420+eried@users.noreply.github.com> Date: Thu, 24 Sep 2020 03:15:40 +0200 Subject: [PATCH] Default null for on touch release and press Fixes https://github.com/eried/portapack-mayhem/issues/194 --- firmware/common/ui_widget.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/common/ui_widget.hpp b/firmware/common/ui_widget.hpp index f66da710..134f3110 100644 --- a/firmware/common/ui_widget.hpp +++ b/firmware/common/ui_widget.hpp @@ -378,8 +378,8 @@ private: class Button : public Widget { public: std::function on_select { }; - std::function on_touch_release { }; // Executed when releasing touch, after on_select. - std::function on_touch_press { }; // Executed when touching, before on_select. + std::function on_touch_release { nullptr }; // Executed when releasing touch, after on_select. + std::function on_touch_press { nullptr }; // Executed when touching, before on_select. std::function on_dir { }; std::function on_highlight { };