Closed cgreening closed 7 months ago
This update introduces a new error handling feature for SD card failures in a media player application. It adds functionality to display error messages on both Matrix and TFT displays when the SD card cannot be mounted. Additionally, the main program logic now includes checks for SD card mounting success, with a fallback to an error state if the mounting fails.
Files | Change Summary |
---|---|
.../Displays/Matrix.cpp, Matrix.h |
Added drawSDCardFailed() to show an error on Matrix display. |
.../Displays/TFT.cpp, TFT.h |
Added drawSDCardFailed() to show an error on TFT display. |
.../main.cpp |
Enhanced SD card mounting checks; infinite loop on failure. |
🐰✨ Oh hoppity hop, in the code we dive deep, A bug in the thicket, makes the system weep. Fear not, for the fix is both clever and grand, With messages clear, on displays they stand. Looping around, in a watchful, endless leap. 🌟 🐇💾
player/src/Displays/Matrix.h (1)
`21-21`: The addition of `drawSDCardFailed()` to the `Matrix` class is appropriate for handling SD card mount failures.player/src/Displays/TFT.h (1)
`23-23`: The addition of `drawSDCardFailed()` to the `TFT` class is appropriate for handling SD card mount failures.player/src/Displays/Matrix.cpp (1)
`55-61`: The implementation of `drawSDCardFailed()` in the `Matrix` class correctly handles the display of the SD card failure message.player/src/Displays/TFT.cpp (1)
`83-89`: The implementation of `drawSDCardFailed()` in the `TFT` class correctly handles the display of the SD card failure message.player/src/main.cpp (1)
`74-81`: The changes in the SD card mount check enhance system stability and user feedback by appropriately handling mount failures.
Don't go into an infinite loop when the SD Card fails to mount.
Helps to troubleshoot #19
Summary by CodeRabbit