some format changes

This commit is contained in:
KlausMu 2024-04-16 13:19:32 +02:00
parent ef12879b0d
commit 62386efa4d
2 changed files with 3 additions and 5 deletions

View File

@ -131,12 +131,11 @@ void sendIRcode_HAL(int protocol, std::list<std::string> 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);

View File

@ -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,