Skip to content

Fix DFPlayer test to fail cleanly when hardware is missing#355

Open
Yukti007 wants to merge 1 commit intomainfrom
bugfix/336-gpad-api-hang-without-dfplayer
Open

Fix DFPlayer test to fail cleanly when hardware is missing#355
Yukti007 wants to merge 1 commit intomainfrom
bugfix/336-gpad-api-hang-without-dfplayer

Conversation

@Yukti007
Copy link
Collaborator

@Yukti007 Yukti007 commented Feb 5, 2026

What was fixed

  • DFPlayer test no longer hangs when the module is absent or unresponsive

  • SD test now fails cleanly if DFPlayer is not present

  • Speaker test is gated on both DFPlayer presence and readable SD files

  • Centralized DFPlayer initialization and response checks

  • Removed dead and unreachable code paths in DFPlayer, SD, Speaker, SPI, and RS-232 tests

  • Run-All sequence remains linear and non-blocking

Expected behavior after this change

  • Firmware continues running even on incomplete hardware

  • Missing DFPlayer hardware is reported correctly as FAIL

  • No false “DFPlayer detected” messages

  • No blocking waits or infinite loops

@Yukti007 Yukti007 linked an issue Feb 5, 2026 that may be closed by this pull request
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.

Firmware, Testing with Out DFPlayer GPAD_API should not hang.

1 participant