13
0

push2: use vector of pads rather than map when shutting down

This commit is contained in:
Paul Davis 2022-08-31 10:23:12 -06:00
parent 253dac007d
commit cbbc6f9b84

View File

@ -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> pad = pi->second;
for (auto & pad : _xy_pad_map) {
pad->set_color (LED::Black);
pad->set_state (LED::OneShot24th);
write (pad->state_msg());