Skip to content

Commit 503a8e6

Browse files
Willy-JLhedger
andauthored
FreeRTOS API fixes (#73)
Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: hedger <hedger@nanode.su>
1 parent 4482fe2 commit 503a8e6

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.catalog/CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v.1.3
2+
3+
Minimal changes for recent API updates
4+
15
## v.1.2
26

37
* Fix deadlock on disk eject
@@ -10,4 +14,4 @@
1014

1115
## v.1.0
1216

13-
Initial release.
17+
Initial release.

application.fam

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ App(
99
],
1010
stack_size=2 * 1024,
1111
fap_description="Implements a mass storage device over USB for disk images",
12-
fap_version="1.2",
12+
fap_version="1.3",
1313
fap_icon="assets/mass_storage_10px.png",
1414
fap_icon_assets="assets",
1515
fap_category="USB",

mass_storage_app.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,13 @@ static void mass_storage_app_tick_event_callback(void* context) {
2222
}
2323

2424
void mass_storage_app_show_loading_popup(MassStorageApp* app, bool show) {
25-
TaskHandle_t timer_task = xTaskGetHandle(configTIMER_SERVICE_TASK_NAME);
26-
2725
if(show) {
2826
// Raise timer priority so that animations can play
29-
vTaskPrioritySet(timer_task, configMAX_PRIORITIES - 1);
27+
furi_timer_set_thread_priority(FuriTimerThreadPriorityElevated);
3028
view_dispatcher_switch_to_view(app->view_dispatcher, MassStorageAppViewLoading);
3129
} else {
3230
// Restore default timer priority
33-
vTaskPrioritySet(timer_task, configTIMER_TASK_PRIORITY);
31+
furi_timer_set_thread_priority(FuriTimerThreadPriorityNormal);
3432
}
3533
}
3634

0 commit comments

Comments
 (0)