Fix for include + code correctness

This commit is contained in:
Ken Van Hoeylandt 2025-09-21 23:31:10 +02:00
parent 5b111def8e
commit 9e9e6c0f18

View File

@ -1,6 +1,8 @@
#include <Tactility/hal/sdcard/SdCardMounting.h>
#include <Tactility/hal/sdcard/SdCardDevice.h>
#include <format>
namespace tt::hal::sdcard {
constexpr auto* TAG = "SdCardMounting";
@ -20,7 +22,7 @@ static std::string getMountPath(int index, int count) {
}
void mountAll() {
auto sdcards = hal::findDevices<SdCardDevice>(Device::Type::SdCard);
const auto sdcards = hal::findDevices<SdCardDevice>(Device::Type::SdCard);
// Numbered mount path name
for (int i = 0; i < sdcards.size(); i++) {
auto sdcard = sdcards[i];