mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-15 00:27:40 +00:00
Fix encoder setting p.mem issue (#2475)
This commit is contained in:

committed by
GitHub

parent
2de1f8e6bf
commit
7eb08f34cb
@@ -177,4 +177,4 @@ void FlashUtilityView::focus() {
|
||||
menu_view.focus();
|
||||
}
|
||||
|
||||
} /* namespace ui */
|
||||
} /* namespace ui */
|
||||
|
@@ -615,8 +615,8 @@ class SetEncoderDialView : public View {
|
||||
OptionsField field_encoder_dial_direction{
|
||||
{18 * 8, 14 * 16},
|
||||
7,
|
||||
{{"NORMAL", encoder_dial_direction::DIAL_DIRECTION_NORMAL},
|
||||
{"REVERSE", encoder_dial_direction::DIAL_DIRECTION_REVERSE}}};
|
||||
{{"NORMAL", false},
|
||||
{"REVERSE", true}}};
|
||||
|
||||
Button button_dial_sensitivity_plus{
|
||||
{20 * 8, 2 * 16, 16, 16},
|
||||
|
@@ -67,8 +67,8 @@ int_fast8_t Encoder::update(const uint_fast8_t phase_bits) {
|
||||
if ((sensitivity_map[portapack::persistent_memory::encoder_dial_sensitivity()] & (1 << state)) == 0)
|
||||
return 0;
|
||||
|
||||
// true: normal, false: reverse
|
||||
if (!portapack::persistent_memory::encoder_dial_direction())
|
||||
// false: normal, true: reverse
|
||||
if (portapack::persistent_memory::encoder_dial_direction())
|
||||
direction = -direction;
|
||||
|
||||
return direction;
|
||||
|
Reference in New Issue
Block a user