Fix encoder setting p.mem issue (#2475)

This commit is contained in:
sommermorgentraum 2025-01-09 22:56:14 +08:00 committed by GitHub
parent 2de1f8e6bf
commit 7eb08f34cb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 9 additions and 14 deletions

View file

@ -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;