fix: crash loop on new chip (#45)

changes: skip reading bitmaps on invalid magic header
This commit is contained in:
Dien-Nhung Nguyen
2024-09-05 22:30:40 +07:00
committed by GitHub
parent a8b32e91b6
commit 68e4ce488d
2 changed files with 6 additions and 0 deletions

View File

@@ -79,6 +79,9 @@ void play_splash(xbm_t *xbm, int col, int row)
void load_bmlist()
{
if (data_get_header(0) == 0) // There is no bitmap stored in flash
return; // skip
bm_t *curr_bm = bmlist_current();
for (int i=0; i<8; i++) {