From 62386efa4d794c930de90c3e834d292f6fe48236 Mon Sep 17 00:00:00 2001 From: KlausMu Date: Tue, 16 Apr 2024 13:19:32 +0200 Subject: [PATCH] some format changes --- Platformio/hardware/ESP32/infrared_sender_hal_esp32.cpp | 5 ++--- .../windows_linux/infrared_sender_hal_windows_linux.cpp | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Platformio/hardware/ESP32/infrared_sender_hal_esp32.cpp b/Platformio/hardware/ESP32/infrared_sender_hal_esp32.cpp index 42b043f..c4559cf 100644 --- a/Platformio/hardware/ESP32/infrared_sender_hal_esp32.cpp +++ b/Platformio/hardware/ESP32/infrared_sender_hal_esp32.cpp @@ -131,12 +131,11 @@ void sendIRcode_HAL(int protocol, std::list commandPayloads, std::s break; } - case IR_PROTOCOL_SAMSUNG36: - { + case IR_PROTOCOL_SAMSUNG36: { auto current = commandPayloads.begin(); std::string dataStr = *current; // https://cplusplus.com/reference/string/stoull/ - std::string::size_type sz = 0; // alias of size_t + std::string::size_type sz = 0; // alias of size_t const uint64_t data = std::stoull(dataStr, &sz, 0); Serial.printf("execute: will send IR SAMSUNG36, data %s (%" PRIu64 ")\r\n", dataStr.c_str(), data); IrSender.sendSamsung36(data); diff --git a/Platformio/hardware/windows_linux/infrared_sender_hal_windows_linux.cpp b/Platformio/hardware/windows_linux/infrared_sender_hal_windows_linux.cpp index 70ab90e..4e4cb3d 100644 --- a/Platformio/hardware/windows_linux/infrared_sender_hal_windows_linux.cpp +++ b/Platformio/hardware/windows_linux/infrared_sender_hal_windows_linux.cpp @@ -5,8 +5,7 @@ void init_infraredSender_HAL(void) { } // IR protocols -enum IRprotocols -{ +enum IRprotocols { IR_PROTOCOL_GC = 0, IR_PROTOCOL_NEC = 1, IR_PROTOCOL_SAMSUNG = 2,