Skip to content

Disable interrupts conditionally#102

Merged
ladyada merged 5 commits intoadafruit:masterfrom
caternuson:giga_r1
Apr 22, 2025
Merged

Disable interrupts conditionally#102
ladyada merged 5 commits intoadafruit:masterfrom
caternuson:giga_r1

Conversation

@caternuson
Copy link
Contributor

This is a nominal fix for the issue raised in this forum post:
https://forums.adafruit.com/viewtopic.php?t=217653

It does not fix interrupt playback. It simply protects from unnecessarily disabling interrupts if not using interrupt based playback, which prevented even non-interrupt playback from working.

Tested with an Arduino Giga R1 using the player_simple example from this library - modified for shield pins and commenting out call to musicPlayer.useInterrupt(). The call to playFullFile() now works, but not startPlayingFile() , etc.

@caternuson
Copy link
Contributor Author

@ladyada more of a hack than a fix, but for review...

@caternuson
Copy link
Contributor Author

Also tested with a Metro ESP32-S2:
https://www.adafruit.com/product/4775
and a Metro RP2350:
https://www.adafruit.com/product/6003

@ladyada ladyada merged commit 38093fb into adafruit:master Apr 22, 2025
1 check passed
@ladyada
Copy link
Member

ladyada commented Apr 22, 2025

lets try it! plz bump release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants