GrKoR / esphome_aux_ac_component

ESPHome component for AUX based air conditioners. Direct wifi control of HVAC by ESPHome and Home Assistant. HVAC status and command feedback are available.
Other
185 stars 44 forks source link

the size of the textBuf buffer #23

Closed GrKoR closed 2 years ago

GrKoR commented 2 years ago

Warning:

In file included from src/esphome.h:16, from src/main.cpp:3: src/esphome/components/aux_ac/aux_ac.h: In member function 'void esphome::aux_ac::AirCon::_debugPrintPacket(esphome::aux_ac::packet_t*, uint8_t, unsigned int)': src/esphome/components/aux_ac/aux_ac.h:1150:36: warning: 'sprintf' writing a terminating nul past the end of the destination [-Wformat-overflow=] 1150 | sprintf(textBuf, "%010u", packet->msec); | ^ src/esphome/components/aux_ac/aux_ac.h:1150:20: note: 'sprintf' output 11 bytes into a destination of size 10 1150 | sprintf(textBuf, "%010u", packet->msec);