Consistent furi_assert usage across project. (#392)
This commit is contained in:
@@ -140,13 +140,13 @@ static void meta_menu_callback(void* context, uint8_t index) {
|
||||
}
|
||||
|
||||
static void lock_icon_callback(Canvas* canvas, void* context) {
|
||||
assert(context);
|
||||
furi_assert(context);
|
||||
Dolphin* dolphin = context;
|
||||
canvas_draw_icon(canvas, 0, 0, dolphin->lock_icon);
|
||||
}
|
||||
|
||||
static void draw_passport_callback(Canvas* canvas, void* context) {
|
||||
assert(context);
|
||||
furi_assert(context);
|
||||
Dolphin* dolphin = context;
|
||||
|
||||
char level[20];
|
||||
|
@@ -20,22 +20,22 @@ void view_port_free(ViewPort* view_port) {
|
||||
}
|
||||
|
||||
void view_port_set_width(ViewPort* view_port, uint8_t width) {
|
||||
assert(view_port);
|
||||
furi_assert(view_port);
|
||||
view_port->width = width;
|
||||
}
|
||||
|
||||
uint8_t view_port_get_width(ViewPort* view_port) {
|
||||
assert(view_port);
|
||||
furi_assert(view_port);
|
||||
return view_port->width;
|
||||
}
|
||||
|
||||
void view_port_set_height(ViewPort* view_port, uint8_t height) {
|
||||
assert(view_port);
|
||||
furi_assert(view_port);
|
||||
view_port->height = height;
|
||||
}
|
||||
|
||||
uint8_t view_port_get_height(ViewPort* view_port) {
|
||||
assert(view_port);
|
||||
furi_assert(view_port);
|
||||
return view_port->height;
|
||||
}
|
||||
|
||||
|
@@ -124,7 +124,7 @@ void menu_view_port_callback(Canvas* canvas, void* context) {
|
||||
}
|
||||
|
||||
void menu_set_icon(Menu* menu, Icon* icon) {
|
||||
assert(menu);
|
||||
furi_assert(menu);
|
||||
|
||||
if(menu->icon) {
|
||||
icon_stop_animation(menu->icon);
|
||||
|
@@ -34,13 +34,13 @@ struct Power {
|
||||
};
|
||||
|
||||
void power_draw_usb_callback(Canvas* canvas, void* context) {
|
||||
assert(context);
|
||||
furi_assert(context);
|
||||
Power* power = context;
|
||||
canvas_draw_icon(canvas, 0, 0, power->usb_icon);
|
||||
}
|
||||
|
||||
void power_draw_battery_callback(Canvas* canvas, void* context) {
|
||||
assert(context);
|
||||
furi_assert(context);
|
||||
Power* power = context;
|
||||
canvas_draw_icon(canvas, 0, 0, power->battery_icon);
|
||||
with_view_model(
|
||||
@@ -138,7 +138,7 @@ Power* power_alloc() {
|
||||
}
|
||||
|
||||
void power_free(Power* power) {
|
||||
assert(power);
|
||||
furi_assert(power);
|
||||
free(power);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user