diff -r 64886971967b -r 31f9d3e4a85f main/task_tft.c --- a/main/task_tft.c Mon Feb 19 15:07:28 2024 +0100 +++ b/main/task_tft.c Mon Jun 24 17:05:20 2024 +0200 @@ -18,6 +18,10 @@ char s_timer[16]; ///< Timer string buffer char s_top_msg[64]; ///< Top message string buffer +extern my_config_t config; +extern my_equipment_t equipment; +extern my_runtime_t runtime; + extern float stageTemp; extern uint16_t stageTime; extern uint16_t TimeWhirlPool; @@ -127,7 +131,7 @@ assert(ret == ESP_OK); ESP_LOGD(TAG, "SPI: attached display, spi bus: %d, speed: %u, bus uses native pins: %s", - SPI_BUS, spi_lobo_get_speed(spi), spi_lobo_uses_native_pins(spi) ? "true" : "false"); + SPI_BUS, (unsigned)spi_lobo_get_speed(spi), spi_lobo_uses_native_pins(spi) ? "true" : "false"); ESP_LOGI(TAG, "TS pins : miso=%d, mosi=%d, sck=%d, cs=%d", PIN_NUM_MISO, PIN_NUM_MOSI, PIN_NUM_CLK, PIN_NUM_TCS); @@ -141,7 +145,7 @@ ret = spi_lobo_device_deselect(tsspi); assert(ret == ESP_OK); - ESP_LOGD(TAG, "SPI: attached TS device, spi bus: %d, speed: %u", SPI_BUS, spi_lobo_get_speed(tsspi)); + ESP_LOGD(TAG, "SPI: attached TS device, spi bus: %d, speed: %u", SPI_BUS, (unsigned)spi_lobo_get_speed(tsspi)); // ==== Initialize the Display ==== TFT_display_init(); @@ -151,7 +155,7 @@ // ==== Set SPI clock used for display operations ==== spi_lobo_set_speed(spi, DEFAULT_SPI_CLOCK); - ESP_LOGD(TAG, "SPI: Max rd speed: %u, changed speed to %u", max_rdclock, spi_lobo_get_speed(spi)); + ESP_LOGD(TAG, "SPI: Max rd speed: %u, changed speed to %u", (unsigned)max_rdclock, (unsigned)spi_lobo_get_speed(spi)); font_rotate = 0; text_wrap = 0;