Skip to content

Commit 3660909

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 330d68b commit 3660909

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.catalog/changelog.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 1.8
2+
- Minimal changes for recent API updates
13
## 1.7
24
- Rework application with new NFC API
35
## 1.6

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="App to communicate with NFC tags using the PicoPass(iClass) format",
13-
fap_version="1.7",
13+
fap_version="1.8",
1414
fap_icon="125_10px.png",
1515
fap_category="NFC",
1616
fap_libs=["mbedtls"],

picopass.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -196,15 +196,13 @@ void picopass_blink_stop(Picopass* picopass) {
196196

197197
void picopass_show_loading_popup(void* context, bool show) {
198198
Picopass* picopass = context;
199-
TaskHandle_t timer_task = xTaskGetHandle(configTIMER_SERVICE_TASK_NAME);
200-
201199
if(show) {
202200
// Raise timer priority so that animations can play
203-
vTaskPrioritySet(timer_task, configMAX_PRIORITIES - 1);
201+
furi_timer_set_thread_priority(FuriTimerThreadPriorityElevated);
204202
view_dispatcher_switch_to_view(picopass->view_dispatcher, PicopassViewLoading);
205203
} else {
206204
// Restore default timer priority
207-
vTaskPrioritySet(timer_task, configTIMER_TASK_PRIORITY);
205+
furi_timer_set_thread_priority(FuriTimerThreadPriorityNormal);
208206
}
209207
}
210208

0 commit comments

Comments
 (0)