Skip to content

Log the outcome of scanning /samples on the SD card - #8

Merged
jakubthedeveloper merged 1 commit into
mainfrom
fix/sd-sample-scan-logs
Oct 26, 2026
Merged

jakubthedeveloper merged 1 commit into
mainfrom
fix/sd-sample-scan-logs

Conversation

@jakubthedeveloper

Copy link
Copy Markdown
Owner

What

  • SampleLibrary::loadFromSd now logs when /samples cannot be opened or is not a directory.
  • It also logs how many WAV files were found before validation.

Why

A missing or unreadable /samples returned silently, so a library showing 0 samples gave no hint in the boot log. With these lines the log tells apart a mount failure (SD: mount failed), a missing directory, and an empty directory.

Testing

Built with make build-main and flashed; boot log checked on the device.

🤖 Generated with Claude Code

A missing or unreadable /samples directory returned silently, so an empty
library gave no hint in the boot log. Log that case and the WAV count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@jakubthedeveloper
jakubthedeveloper merged commit 5876107 into main Oct 26, 2026
2 checks passed
@jakubthedeveloper
jakubthedeveloper deleted the fix/sd-sample-scan-logs branch October 26, 2026 17:25
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.

1 participant