add mutex in furi_create_deprecated (#242)

This commit is contained in:
DrZlo13
2020-11-16 20:22:28 +03:00
committed by GitHub
parent 3d6af91dd1
commit 2ba3722de2
4 changed files with 30 additions and 3 deletions

View File

@@ -1,5 +1,15 @@
#include "flipper_v2.h"
bool init_flipper_api(void) {
return gpio_api_init();
bool no_errors = true;
if(!furi_init()) {
no_errors = false;
}
if(!gpio_api_init()) {
no_errors = false;
}
return no_errors;
}