-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2f3474c
commit 7f98c3d
Showing
2 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,53 @@ | ||
#include "../../app_user.h" | ||
|
||
static int32_t uds_get_vin_thread(void* context); | ||
|
||
/* | ||
UDS get Vin Scene | ||
*/ | ||
|
||
// Scene on enter | ||
void app_scene_uds_request_vin_on_enter(void* context) { | ||
UNUSED(context); | ||
App* app = context; | ||
|
||
widget_reset(app->widget); | ||
|
||
widget_add_string_multiline_element( | ||
app->widget, 64, 32, AlignCenter, AlignCenter, FontPrimary, "On\nDevelopment"); | ||
|
||
app->thread = furi_thread_alloc_ex("ManualUDS", 1024, uds_get_vin_thread, app); | ||
furi_thread_start(app->thread); | ||
|
||
view_dispatcher_switch_to_view(app->view_dispatcher, ViewWidget); | ||
} | ||
|
||
// Scene on event | ||
bool app_scene_uds_request_vin_on_event(void* context, SceneManagerEvent event) { | ||
UNUSED(context); | ||
UNUSED(event); | ||
return false; | ||
} | ||
|
||
// Scene on exit | ||
void app_scene_uds_request_vin_on_exit(void* context) { | ||
UNUSED(context); | ||
App* app = context; | ||
|
||
furi_thread_join(app->thread); | ||
furi_thread_free(app->thread); | ||
|
||
widget_reset(app->widget); | ||
} | ||
|
||
/* | ||
Thread to work with | ||
*/ | ||
|
||
static int32_t uds_get_vin_thread(void* context) { | ||
App* app = context; | ||
|
||
FuriString* text = app->text; | ||
|
||
UNUSED(text); | ||
|
||
return 0; | ||
} |