From cbbc6f9b8491dfed10f68ef0ebe0402944f56950 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 31 Aug 2022 10:23:12 -0600 Subject: [PATCH] push2: use vector of pads rather than map when shutting down --- libs/surfaces/push2/push2.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/libs/surfaces/push2/push2.cc b/libs/surfaces/push2/push2.cc index a3e538ea6d..99aa3708d2 100644 --- a/libs/surfaces/push2/push2.cc +++ b/libs/surfaces/push2/push2.cc @@ -449,9 +449,7 @@ Push2::init_buttons (bool startup) _current_layout->hide (); } - for (PadMap::iterator pi = _nn_pad_map.begin(); pi != _nn_pad_map.end(); ++pi) { - boost::shared_ptr pad = pi->second; - + for (auto & pad : _xy_pad_map) { pad->set_color (LED::Black); pad->set_state (LED::OneShot24th); write (pad->state_msg());