Fixed Update sequence with missing font definition

This commit is contained in:
Daniel Eichhorn
2016-10-16 21:11:02 +02:00
parent 02f257d6e4
commit 503fd463f7

View File

@@ -173,6 +173,7 @@ void downloadCallback(String filename, int16_t bytesDownloaded, int16_t bytesTot
// Download the bitmaps // Download the bitmaps
void downloadResources() { void downloadResources() {
tft.fillScreen(ILI9341_BLACK); tft.fillScreen(ILI9341_BLACK);
tft.setFont(&ArialRoundedMTBold_14);
char id[5]; char id[5];
for (int i = 0; i < 21; i++) { for (int i = 0; i < 21; i++) {
sprintf(id, "%02d", i); sprintf(id, "%02d", i);
@@ -193,6 +194,7 @@ void downloadResources() {
// Update the internet based information and update screen // Update the internet based information and update screen
void updateData() { void updateData() {
tft.fillScreen(ILI9341_BLACK); tft.fillScreen(ILI9341_BLACK);
tft.setFont(&ArialRoundedMTBold_14);
drawProgress(20, "Updating time..."); drawProgress(20, "Updating time...");
timeClient.updateTime(); timeClient.updateTime();
drawProgress(50, "Updating conditions..."); drawProgress(50, "Updating conditions...");