You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function resetTC() waits for timer counter sync or reset in an infinite loop because it is interrupted by an ISR that also calls resetTC()
resetTC() is called from:
Tone_Handler() (Interrupt Service Routine)
tone() (but interrupts are disabled when it's called)
noTone() (HANG)
It can happen that an interrupt can occur while noTone() is performing resetTC(). The interrupt service routine will also perform resetTC(), and when execution returns to noTone() in the middle of performing resetTC() it will hang.
The function resetTC() waits for timer counter sync or reset in an infinite loop because it is interrupted by an ISR that also calls resetTC()
resetTC() is called from:
It can happen that an interrupt can occur while noTone() is performing resetTC(). The interrupt service routine will also perform resetTC(), and when execution returns to noTone() in the middle of performing resetTC() it will hang.
File: Tone.cpp
Function: noTone (uint32_t outputPin)
Hang Fix:
resetTC():
Interrupt Service Routine:
The text was updated successfully, but these errors were encountered: