main/brewboard.c

changeset 54
7b134c27fadb
parent 53
cf91a3a20d0d
child 87
47253f294a9f
--- a/main/brewboard.c	Sun May 19 21:05:07 2019 +0200
+++ b/main/brewboard.c	Mon Jul 01 23:15:49 2019 +0200
@@ -43,7 +43,7 @@
 
     TFT_setFont(DEJAVU18_FONT, NULL);
     _fg = TFT_CYAN;
-    TFT_print("Mount /spiffs ", 0, LASTY+tempy);
+    TFT_print((char *)"Mount /spiffs ", 0, LASTY+tempy);
     ESP_LOGI(TAG, "Initializing SPIFFS");
         
     esp_vfs_spiffs_conf_t conf = {
@@ -66,7 +66,7 @@
 	    ESP_LOGE(TAG, "Failed to initialize SPIFFS (%d)", ret);
 	}
 	_fg = TFT_RED;
-	TFT_print("error\r\n", LASTX, LASTY);
+	TFT_print((char *)"error\r\n", LASTX, LASTY);
 	return; // Stop application.
     }
 
@@ -75,12 +75,12 @@
     if (ret != ESP_OK) {
 	ESP_LOGE(TAG, "Failed to get SPIFFS partition information");
 	_fg = TFT_RED;
-	TFT_print("error\r\n", LASTX, LASTY);
+	TFT_print((char *)"error\r\n", LASTX, LASTY);
 	return; // Stop application.
     } else {
 	ESP_LOGI(TAG, "Partition size: %d, used: %d - %d%%", total, used, (used * 100) / total);
     }
-    TFT_print("Ok\r\n", LASTX, LASTY);
+    TFT_print((char *)"Ok\r\n", LASTX, LASTY);
 
     // Just to debug, list the /spiffs filesystem.
 #if 1
@@ -102,12 +102,12 @@
     /*
      * Read or create configuration
      */
-    TFT_print("Ophalen configuratie ", LASTX, LASTY);
+    TFT_print((char *)"Ophalen configuratie ", LASTX, LASTY);
     read_config();
     read_equipment(config.EquipmentRec);
     read_runtime();
     read_recipe(config.RecipeRec);
-    TFT_print("Ok\r\n", LASTX, LASTY);
+    TFT_print((char *)"Ok\r\n", LASTX, LASTY);
 
     // Set the Touchscreen calibration/
     TS_set_calibration(config.ts_xleft, config.ts_xright, config.ts_ytop, config.ts_ybottom);
@@ -122,7 +122,7 @@
     xSemaphoreDS18B20 = xSemaphoreCreateMutex();
     xSemaphoreDriver  = xSemaphoreCreateMutex();
 
-    TFT_print("Starten taken ", LASTX, LASTY);
+    TFT_print((char *)"Starten taken ", LASTX, LASTY);
     xTaskCreate(&task_tft,     "task_tft",      6144, NULL, 4, &xTaskTFT);
     vTaskDelay(400 / portTICK_PERIOD_MS);
     xTaskCreate(&task_ds18b20, "task_ds18b20",  2560, NULL, 8, &xTaskDS18B20);
@@ -132,12 +132,12 @@
     /* lower the wifi logging level */
     esp_log_level_set("wifi", ESP_LOG_ERROR);
     xTaskCreate(&task_wifi,    "task_wifi",     4096, NULL, 3, &xTaskWifi);
-    TFT_print(" Ok\r\nConnecting ", LASTX, LASTY);
+    TFT_print((char *)" Ok\r\nConnecting ", LASTX, LASTY);
 
     int wait = 20;
     while (wait) {
 	vTaskDelay(750 / portTICK_PERIOD_MS);
-	TFT_print(".", LASTX, LASTY);
+	TFT_print((char *)".", LASTX, LASTY);
     	if (xSemaphoreTake(xSemaphoreWiFi, 25) == pdTRUE) {
 	    if (wifi_state->STA_connected == true)
 		wait = 0;
@@ -146,7 +146,7 @@
 	    xSemaphoreGive(xSemaphoreWiFi);
     	}
     }
-    TFT_print(" Ok\r\n", LASTX, LASTY);
+    TFT_print((char *)" Ok\r\n", LASTX, LASTY);
     SoundPlay(SOUND_StartUp);
 
     start_http_websocket();

mercurial