mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-11 06:09:08 -07:00
Api Symbols: replace asserts with checks
merge ofw commit
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#include <gui/canvas.h>
|
||||
#include <gui/canvas_i.h>
|
||||
|
||||
void flipper_boot_dfu_show_splash() {
|
||||
void flipper_boot_dfu_show_splash(void) {
|
||||
// Initialize
|
||||
Canvas* canvas = canvas_init();
|
||||
|
||||
@@ -22,7 +22,7 @@ void flipper_boot_dfu_show_splash() {
|
||||
canvas_free(canvas);
|
||||
}
|
||||
|
||||
void flipper_boot_dfu_exec() {
|
||||
void flipper_boot_dfu_exec(void) {
|
||||
// Show DFU splashscreen
|
||||
flipper_boot_dfu_show_splash();
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ int32_t init_task(void* context) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int main() {
|
||||
int main(void) {
|
||||
// Initialize FURI layer
|
||||
furi_init();
|
||||
|
||||
@@ -71,6 +71,6 @@ void Error_Handler(void) {
|
||||
furi_crash("ErrorHandler");
|
||||
}
|
||||
|
||||
void abort() {
|
||||
void abort(void) {
|
||||
furi_crash("AbortHandler");
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ void flipper_boot_recovery_draw_splash(Canvas* canvas) {
|
||||
canvas_commit(canvas);
|
||||
}
|
||||
|
||||
void flipper_boot_recovery_exec() {
|
||||
void flipper_boot_recovery_exec(void) {
|
||||
Canvas* canvas = canvas_init();
|
||||
|
||||
// Show recovery splashscreen
|
||||
|
||||
@@ -22,7 +22,7 @@ static FATFS* pfs = NULL;
|
||||
} \
|
||||
}
|
||||
|
||||
static bool flipper_update_mount_sd() {
|
||||
static bool flipper_update_mount_sd(void) {
|
||||
for(int i = 0; i < furi_hal_sd_max_mount_retry_count(); ++i) {
|
||||
if(furi_hal_sd_init((i % 2) == 0) != FuriStatusOk) {
|
||||
/* Next attempt will be without card reset, let it settle */
|
||||
@@ -37,7 +37,7 @@ static bool flipper_update_mount_sd() {
|
||||
return false;
|
||||
}
|
||||
|
||||
static bool flipper_update_init() {
|
||||
static bool flipper_update_init(void) {
|
||||
// TODO FL-3504: Configure missing peripherals properly
|
||||
furi_hal_bus_enable(FuriHalBusHSEM);
|
||||
furi_hal_bus_enable(FuriHalBusIPCC);
|
||||
@@ -180,7 +180,7 @@ static UpdateManifest* flipper_update_process_manifest(const FuriString* manifes
|
||||
return manifest;
|
||||
}
|
||||
|
||||
void flipper_boot_update_exec() {
|
||||
void flipper_boot_update_exec(void) {
|
||||
if(!flipper_update_init()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user