Various fixes and improvements (#177)
- Remove custom `ESP_TARGET` and use `ESP_PLATFORM` everywhere - Add `Loader` service functionality to `tt::app::` namespace - Make `Loader` `PubSub` usable by exposing the messages - Add board type to crash log - Don't show SD card in Files app when it's not mounted - Set default SPI frequency for SD cards - Move TT_VERSION to scope that works for sim too - Log Tactility version and board on boot - Rename "Yellow Board" to "CYD 2432S024C"
This commit is contained in:
committed by
GitHub
parent
97b8007aca
commit
12a9839420
@@ -1,10 +1,11 @@
|
||||
#include "app/files/State.h"
|
||||
#include "app/files/FileUtils.h"
|
||||
|
||||
#include "kernel/Kernel.h"
|
||||
#include "Log.h"
|
||||
#include "Partitions.h"
|
||||
#include "TactilityHeadless.h"
|
||||
#include "hal/SdCard.h"
|
||||
#include "kernel/Kernel.h"
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
@@ -61,11 +62,22 @@ bool State::setEntriesForPath(const std::string& path) {
|
||||
.d_type = TT_DT_DIR,
|
||||
.d_name = DATA_PARTITION_NAME
|
||||
});
|
||||
dir_entries.push_back({
|
||||
.d_ino = 2,
|
||||
.d_type = TT_DT_DIR,
|
||||
.d_name = TT_SDCARD_MOUNT_NAME
|
||||
});
|
||||
|
||||
#ifndef TT_SCREENSHOT_MODE
|
||||
auto sdcard = tt::hal::getConfiguration()->sdcard;
|
||||
if (sdcard != nullptr) {
|
||||
auto state = sdcard->getState();
|
||||
if (state == hal::SdCard::State::Mounted) {
|
||||
#endif
|
||||
dir_entries.push_back({
|
||||
.d_ino = 2,
|
||||
.d_type = TT_DT_DIR,
|
||||
.d_name = TT_SDCARD_MOUNT_NAME
|
||||
});
|
||||
#ifndef TT_SCREENSHOT_MODE
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
current_path = path;
|
||||
selected_child_entry = "";
|
||||
|
||||
Reference in New Issue
Block a user