Merge develop into main (#337)
- Implement `UiScale` in `hal::Configuration`: small screens with no touch can now opt for a more optimized experience (e.g. Cardputer, Waveshare 1.47, Waveshare 1.3", etc.) - Fix for Cardputer UART configuration and added I2C configuration - Fix for software keyboard bug in Gui - Removed deprecated fields from `hal::Configuration` - Updated the simulator devices to use the new HAL config - add `bool tt::hal::hasDevice(Device::Type)` - Cleanup of `AppList` app code - Improve `Gpio` app for small screen devices - Added various ESP32 GCC wrappers to wrap LVGL functions (with manipulations for small screen devices) - Moved `Launcher` assets to `assets/` subfolder - Optimized `Toolbar` for small screen devices - Stop showing `system/` partition in `FileBrowser` because it's read-only and not very useful. Created `config::SHOW_SYSTEM_PARTITION` to override this behaviour. - Hide apps when their required hardware isn't available (I2C, UART, PowerDevice) - Fix for `CYD-2432S032C` DPI setting
This commit is contained in:
committed by
GitHub
parent
ce8ac61d42
commit
53b711584f
@@ -1,4 +1,6 @@
|
||||
#include "Tactility/MountPoints.h"
|
||||
|
||||
#include "Tactility/TactilityConfig.h"
|
||||
#include "Tactility/hal/Device.h"
|
||||
#include "Tactility/hal/sdcard/SdCardDevice.h"
|
||||
|
||||
@@ -14,15 +16,6 @@ std::vector<dirent> getMountPoints() {
|
||||
std::vector<dirent> dir_entries;
|
||||
dir_entries.clear();
|
||||
|
||||
// System partition
|
||||
auto system_dirent = dirent{
|
||||
.d_ino = 0,
|
||||
.d_type = TT_DT_DIR,
|
||||
.d_name = { 0 }
|
||||
};
|
||||
strcpy(system_dirent.d_name, SYSTEM_PARTITION_NAME);
|
||||
dir_entries.push_back(system_dirent);
|
||||
|
||||
// Data partition
|
||||
auto data_dirent = dirent{
|
||||
.d_ino = 1,
|
||||
@@ -49,6 +42,17 @@ std::vector<dirent> getMountPoints() {
|
||||
}
|
||||
}
|
||||
|
||||
if (config::SHOW_SYSTEM_PARTITION) {
|
||||
// System partition
|
||||
auto system_dirent = dirent{
|
||||
.d_ino = 0,
|
||||
.d_type = TT_DT_DIR,
|
||||
.d_name = { 0 }
|
||||
};
|
||||
strcpy(system_dirent.d_name, SYSTEM_PARTITION_NAME);
|
||||
dir_entries.push_back(system_dirent);
|
||||
}
|
||||
|
||||
return dir_entries;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user