Reduce build warnings

This commit is contained in:
fvanroie 2021-04-12 03:49:26 +02:00
parent 2dc7255117
commit 97f46c1b95
4 changed files with 6 additions and 6 deletions

View File

@ -51,8 +51,8 @@ class TftEspi : BaseTft {
{
if(pin != -1) {
char buffer[64];
snprintf_P(buffer, sizeof(buffer), PSTR("%-11s: %s (GPIO %02d)"), pinfunction, halGpioName(pin).c_str(),
pin);
snprintf_P(buffer, sizeof(buffer), PSTR("%-11s: %s (GPIO %02d)"), String(pinfunction).c_str(),
halGpioName(pin).c_str(), pin);
LOG_VERBOSE(TAG_TFT, buffer);
}
}

View File

@ -11,7 +11,7 @@ extern "C" {
/*********************
* INCLUDES
*********************/
#if USE_TFT_ESPI
//#if USE_TFT_ESPI
#ifdef LV_LVGL_H_INCLUDE_SIMPLE
#include "lvgl.h"
@ -25,7 +25,7 @@ void tft_espi_set_touch(uint16_t* calData);
bool tft_espi_get_touch(int16_t* touchX, int16_t* touchY, uint16_t threshold);
#endif
#endif /* USE_TFT_ESPI */
//#endif /* USE_TFT_ESPI */
#ifdef __cplusplus
} /* extern "C" */

View File

@ -525,7 +525,7 @@ static void dispatch_config(const char* topic, const char* payload)
char subtopic[8];
settings.remove(F("pass")); // hide password in output
size_t size = serializeJson(doc, buffer, sizeof(buffer));
/* size_t size = */ serializeJson(doc, buffer, sizeof(buffer));
memcpy_P(subtopic, PSTR("config"), 7);
dispatch_state_subtopic(subtopic, buffer);
}

View File

@ -16,7 +16,7 @@
* TYPEDEFS
**********************/
typedef struct hasp_page_meta_data_t
struct hasp_page_meta_data_t
{
uint8_t prev : 4;
uint8_t next : 4;