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 { };