mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 01:18:35 -07:00
Api Symbols: replace asserts with checks
merge ofw commit
This commit is contained in:
@@ -127,7 +127,7 @@ static void battery_info_draw_callback(Canvas* canvas, void* context) {
|
||||
draw_stat(canvas, 104, 42, &I_Health_16x16, health);
|
||||
}
|
||||
|
||||
BatteryInfo* battery_info_alloc() {
|
||||
BatteryInfo* battery_info_alloc(void) {
|
||||
BatteryInfo* battery_info = malloc(sizeof(BatteryInfo));
|
||||
battery_info->view = view_alloc();
|
||||
view_set_context(battery_info->view, battery_info);
|
||||
|
||||
@@ -14,7 +14,7 @@ typedef struct {
|
||||
uint8_t health;
|
||||
} BatteryInfoModel;
|
||||
|
||||
BatteryInfo* battery_info_alloc();
|
||||
BatteryInfo* battery_info_alloc(void);
|
||||
|
||||
void battery_info_free(BatteryInfo* battery_info);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user