Merge branch 'ofw_dev' into nfcrefactoring

This commit is contained in:
MX
2023-11-01 21:07:33 +03:00
462 changed files with 2679 additions and 2077 deletions

View File

@@ -143,7 +143,7 @@ void canvas_set_font(Canvas* canvas, Font font) {
} else if(font == FontBatteryPercent) {
u8g2_SetFont(&canvas->fb, u8g2_font_5x7_tf); //u8g2_font_micro_tr);
} else {
furi_crash(NULL);
furi_crash();
}
}
@@ -183,7 +183,7 @@ void canvas_draw_str_aligned(
x -= (u8g2_GetStrWidth(&canvas->fb, str) / 2);
break;
default:
furi_crash(NULL);
furi_crash();
break;
}
@@ -197,7 +197,7 @@ void canvas_draw_str_aligned(
y += (u8g2_GetAscent(&canvas->fb) / 2);
break;
default:
furi_crash(NULL);
furi_crash();
break;
}
@@ -555,7 +555,7 @@ void canvas_set_orientation(Canvas* canvas, CanvasOrientation orientation) {
rotate_cb = U8G2_R1;
break;
default:
furi_assert(0);
furi_crash();
}
if(need_swap) FURI_SWAP(canvas->width, canvas->height);