fix syntax
This commit is contained in:
@@ -49,7 +49,8 @@ void fatfs_list(void* p) {
|
||||
|
||||
furi_log = get_default_log();
|
||||
|
||||
FuriRecordSubscriber* fb_record = furi_open_deprecated("u8g2_fb", false, false, NULL, NULL, NULL);
|
||||
FuriRecordSubscriber* fb_record =
|
||||
furi_open_deprecated("u8g2_fb", false, false, NULL, NULL, NULL);
|
||||
if(fb_record == NULL) {
|
||||
fuprintf(furi_log, "[widget][fatfs_list] cannot create fb record\n");
|
||||
furiac_exit(NULL);
|
||||
|
@@ -5,7 +5,8 @@ void u8g2_example(void* p) {
|
||||
FuriRecordSubscriber* log = get_default_log();
|
||||
|
||||
// open record
|
||||
FuriRecordSubscriber* fb_record = furi_open_deprecated("u8g2_fb", false, false, NULL, NULL, NULL);
|
||||
FuriRecordSubscriber* fb_record =
|
||||
furi_open_deprecated("u8g2_fb", false, false, NULL, NULL, NULL);
|
||||
|
||||
if(fb_record == NULL) {
|
||||
fuprintf(log, "[widget] cannot create fb record\n");
|
||||
|
@@ -14,7 +14,8 @@ void u8g2_qrcode(void* p) {
|
||||
FuriRecordSubscriber* log = get_default_log();
|
||||
|
||||
// open record
|
||||
FuriRecordSubscriber* fb_record = furi_open_deprecated("u8g2_fb", false, false, NULL, NULL, NULL);
|
||||
FuriRecordSubscriber* fb_record =
|
||||
furi_open_deprecated("u8g2_fb", false, false, NULL, NULL, NULL);
|
||||
|
||||
// Allocate a chunk of memory to store the QR code
|
||||
// https://github.com/ricmoo/QRCode
|
||||
|
@@ -29,8 +29,8 @@ GUIEvent* gui_event_alloc() {
|
||||
assert(gui_event->mqueue);
|
||||
|
||||
// Input
|
||||
gui_event->input_event_record =
|
||||
furi_open_deprecated("input_events", false, false, gui_event_input_events_callback, NULL, gui_event);
|
||||
gui_event->input_event_record = furi_open_deprecated(
|
||||
"input_events", false, false, gui_event_input_events_callback, NULL, gui_event);
|
||||
assert(gui_event->input_event_record != NULL);
|
||||
// Lock mutex
|
||||
gui_event->lock_mutex = osMutexNew(NULL);
|
||||
@@ -58,7 +58,8 @@ void gui_event_unlock(GUIEvent* gui_event) {
|
||||
}
|
||||
|
||||
void gui_event_messsage_send(GUIEvent* gui_event, GUIMessage* message) {
|
||||
assert(gui_event); assert(message);
|
||||
assert(gui_event);
|
||||
assert(message);
|
||||
osMessageQueuePut(gui_event->mqueue, message, 0, 0);
|
||||
}
|
||||
|
||||
|
@@ -187,7 +187,7 @@ void menu_task(void* p) {
|
||||
furiac_exit(NULL);
|
||||
}
|
||||
furiac_ready();
|
||||
|
||||
|
||||
while(1) {
|
||||
MenuMessage m = menu_event_next(menu->event);
|
||||
|
||||
|
@@ -39,7 +39,6 @@ void test_furi_valuemutex() {
|
||||
//read mutex blocking case
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
TEST: concurrent access
|
||||
|
||||
|
@@ -67,7 +67,6 @@ MU_TEST_SUITE(test_suite) {
|
||||
MU_RUN_TEST(mu_test_furi_create_open);
|
||||
MU_RUN_TEST(mu_test_furi_valuemutex);
|
||||
MU_RUN_TEST(mu_test_furi_concurrent_access);
|
||||
|
||||
}
|
||||
|
||||
int run_minunit() {
|
||||
|
Reference in New Issue
Block a user