Various fixes and improvements (#269)
- Bump version for next release - Fix default gamma for CYD 2432S032C - Remember gamma curve setting from Display settings app - Add UART to Core2 (still has no voltage on Grove port, though) - LVGL performance improvements: pin to second core and set task priority to "critical" - Fix build warnings, including deprecations - Removed deprecated `Thread` constructor - Fix WaveShare S3 display: Some displays would show a white screen at 12MHz, so I'm putting it back to the official config values.
This commit is contained in:
committed by
GitHub
parent
eb4e9f9649
commit
08029a84dd
@@ -13,7 +13,7 @@ namespace tt::service::gui {
|
||||
|
||||
// Forward declarations
|
||||
void redraw(Gui*);
|
||||
static int32_t guiMain(TT_UNUSED void* p);
|
||||
static int32_t guiMain();
|
||||
|
||||
Gui* gui = nullptr;
|
||||
|
||||
@@ -33,8 +33,7 @@ Gui* gui_alloc() {
|
||||
instance->thread = new Thread(
|
||||
"gui",
|
||||
4096, // Last known minimum was 2800 for launching desktop
|
||||
&guiMain,
|
||||
nullptr
|
||||
[]() { return guiMain(); }
|
||||
);
|
||||
instance->loader_pubsub_subscription = loader::getPubsub()->subscribe(&onLoaderMessage, instance);
|
||||
tt_check(lvgl::lock(1000 / portTICK_PERIOD_MS));
|
||||
@@ -118,7 +117,7 @@ void hideApp() {
|
||||
unlock();
|
||||
}
|
||||
|
||||
static int32_t guiMain(TT_UNUSED void* p) {
|
||||
static int32_t guiMain() {
|
||||
tt_check(gui);
|
||||
Gui* local_gui = gui;
|
||||
|
||||
|
||||
@@ -59,13 +59,6 @@ static void makeScreenshot(const std::string& filename) {
|
||||
}
|
||||
}
|
||||
|
||||
static int32_t screenshotTaskCallback(void* context) {
|
||||
auto* data = static_cast<ScreenshotTask*>(context);
|
||||
assert(data != nullptr);
|
||||
data->taskMain();
|
||||
return 0;
|
||||
}
|
||||
|
||||
void ScreenshotTask::taskMain() {
|
||||
uint8_t screenshots_taken = 0;
|
||||
std::string last_app_id;
|
||||
@@ -116,8 +109,10 @@ void ScreenshotTask::taskStart() {
|
||||
thread = new Thread(
|
||||
"screenshot",
|
||||
8192,
|
||||
&screenshotTaskCallback,
|
||||
this
|
||||
[this]() {
|
||||
this->taskMain();
|
||||
return 0;
|
||||
}
|
||||
);
|
||||
thread->start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user