Skip to content

Commit 5fa30ab

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 c47ae70 commit 5fa30ab

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.catalog/changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1+
## 1.2
2+
- Minimal changes for recent API updates
3+
14
## 1.1
25
- Rework application with new NFC API
6+
37
## 1.0
48
- Initial release

application.fam

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ App(
1010
],
1111
stack_size=4 * 1024,
1212
fap_description="Application for writing to NFC tags with modifiable sector 0",
13-
fap_version="1.1",
13+
fap_version="1.2",
1414
fap_icon="assets/125_10px.png",
1515
fap_category="NFC",
1616
fap_private_libs=[

nfc_magic_app.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,13 @@ void nfc_magic_app_tick_event_callback(void* context) {
2323

2424
void nfc_magic_app_show_loading_popup(void* context, bool show) {
2525
NfcMagicApp* instance = context;
26-
TaskHandle_t timer_task = xTaskGetHandle(configTIMER_SERVICE_TASK_NAME);
27-
2826
if(show) {
2927
// Raise timer priority so that animations can play
30-
vTaskPrioritySet(timer_task, configMAX_PRIORITIES - 1);
28+
furi_timer_set_thread_priority(FuriTimerThreadPriorityElevated);
3129
view_dispatcher_switch_to_view(instance->view_dispatcher, NfcMagicAppViewLoading);
3230
} else {
3331
// Restore default timer priority
34-
vTaskPrioritySet(timer_task, configTIMER_TASK_PRIORITY);
32+
furi_timer_set_thread_priority(FuriTimerThreadPriorityNormal);
3533
}
3634
}
3735

0 commit comments

Comments
 (0)