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());