mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-24 11:46:34 +00:00
Reduce build warnings
This commit is contained in:
parent
2dc7255117
commit
97f46c1b95
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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" */
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user