[Horus] Freeze when invalid (or no) model bitmap

This commit is contained in:
Bertrand Songis
2015-11-26 22:59:06 +01:00
parent d2155ef089
commit 787d2ffa92
5 changed files with 9 additions and 7 deletions
+4 -1
View File
@@ -69,7 +69,10 @@ bool loadModelBitmap(char * name, uint8_t * bitmap)
}
}
#if !defined(COLORLCD)
#if defined(COLORLCD)
// TODO only the first bytes can be set to 0
memset(bitmap, 0, MODEL_BITMAP_SIZE);
#else
// In all error cases, we set the default logo
memcpy(bitmap, logo_taranis, MODEL_BITMAP_SIZE);
#endif