mirror of
https://github.com/GrKoR/esphome_aux_ac_component.git
synced 2025-12-07 20:16:58 +03:00
fix: using correct int types to reduce compilation warnings / errors
required due to the fact that esp32-c6 compiler raises errors due to that
This commit is contained in:
@@ -5,6 +5,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#include <cinttypes>
|
||||||
#ifndef F
|
#ifndef F
|
||||||
#define F(string_literal) (string_literal)
|
#define F(string_literal) (string_literal)
|
||||||
#endif
|
#endif
|
||||||
@@ -1714,7 +1715,7 @@ namespace esphome
|
|||||||
|
|
||||||
// заполняем время получения пакета
|
// заполняем время получения пакета
|
||||||
memset(textBuf, 0, 11);
|
memset(textBuf, 0, 11);
|
||||||
sprintf(textBuf, "%010u", packet->msec);
|
sprintf(textBuf, "%010" PRIu32, packet->msec);
|
||||||
st = st + textBuf + ": ";
|
st = st + textBuf + ": ";
|
||||||
|
|
||||||
// формируем преамбулы
|
// формируем преамбулы
|
||||||
@@ -2843,11 +2844,11 @@ namespace esphome
|
|||||||
{
|
{
|
||||||
ESP_LOGCONFIG(TAG, "AUX HVAC:");
|
ESP_LOGCONFIG(TAG, "AUX HVAC:");
|
||||||
ESP_LOGCONFIG(TAG, " [x] Firmware version: %s", Constants::AC_FIRMWARE_VERSION.c_str());
|
ESP_LOGCONFIG(TAG, " [x] Firmware version: %s", Constants::AC_FIRMWARE_VERSION.c_str());
|
||||||
ESP_LOGCONFIG(TAG, " [x] Period: %dms", this->get_period());
|
ESP_LOGCONFIG(TAG, " [x] Period: %" PRIu32 "ms", this->get_period());
|
||||||
ESP_LOGCONFIG(TAG, " [x] Show action: %s", TRUEFALSE(this->get_show_action()));
|
ESP_LOGCONFIG(TAG, " [x] Show action: %s", TRUEFALSE(this->get_show_action()));
|
||||||
ESP_LOGCONFIG(TAG, " [x] Display inverted: %s", TRUEFALSE(this->get_display_inverted()));
|
ESP_LOGCONFIG(TAG, " [x] Display inverted: %s", TRUEFALSE(this->get_display_inverted()));
|
||||||
ESP_LOGCONFIG(TAG, " [x] Optimistic: %s", TRUEFALSE(this->get_optimistic()));
|
ESP_LOGCONFIG(TAG, " [x] Optimistic: %s", TRUEFALSE(this->get_optimistic()));
|
||||||
ESP_LOGCONFIG(TAG, " [x] Packet timeout: %dms", this->get_packet_timeout());
|
ESP_LOGCONFIG(TAG, " [x] Packet timeout: %" PRIu32 "ms", this->get_packet_timeout());
|
||||||
|
|
||||||
#if defined(PRESETS_SAVING)
|
#if defined(PRESETS_SAVING)
|
||||||
ESP_LOGCONFIG(TAG, " [x] Save settings %s", TRUEFALSE(this->get_store_settings()));
|
ESP_LOGCONFIG(TAG, " [x] Save settings %s", TRUEFALSE(this->get_store_settings()));
|
||||||
|
|||||||
Reference in New Issue
Block a user