arduino / arduino/ArduinoCore-samd

Winterrupt.c: swapped lines lead to lost interrupts

Open
#625 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
502
Forks
740
PR merge metrics
No merged PRs in 30d

Description

While investigating about lost steps with rotary encoders, a possible bug was found in Winterrupt.c, leading to lost interrupts.

Sorry, don't know how to to a proper PR yet, please see:

https://github.com/luni64/EncoderTool/issues/2#issuecomment-831365667

It should be a solution for:
https://github.com/arduino/ArduinoCore-samd/issues/537

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading Winterrupt.c and the linked EncoderTool issue comment, then compare the reported behavior with ArduinoCore-samd issue 537. Confirm the interrupt-loss scenario and determine the exact swapped-line change needed; done means the issue is reproduced and the fix prevents lost interrupts.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.