1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-26 17:38:39 +00:00

show "Go to myTREZOR.com" instead of label when device is not initialized

This commit is contained in:
Pavol Rusnak 2015-07-09 22:58:05 +02:00
parent 39e29c1037
commit e8b47901ce

View File

@ -64,7 +64,7 @@ void layoutHome(void)
oledSwipeLeft(); oledSwipeLeft();
} }
layoutLast = layoutHome; layoutLast = layoutHome;
const char *label = storage_getLabel(); const char *label = storage_isInitialized() ? storage_getLabel() : "Go to mytrezor.com";
const uint8_t *homescreen = storage_getHomescreen(); const uint8_t *homescreen = storage_getHomescreen();
if (homescreen) { if (homescreen) {
BITMAP b; BITMAP b;