Browse Source

ha: fix swapped device model and manufacturer fields in the discovery

mcspr-patch-1
Alex. Tircovnicu 4 years ago
committed by Maxim Prokhorov
parent
commit
22f0b9b0d3
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      code/espurna/homeassistant.cpp
  2. +1
    -1
      code/espurna/ir.cpp

+ 2
- 2
code/espurna/homeassistant.cpp View File

@ -82,8 +82,8 @@ struct ha_config_t {
deviceConfig.createNestedArray("identifiers").add(identifier.c_str()); deviceConfig.createNestedArray("identifiers").add(identifier.c_str());
deviceConfig["name"] = name.c_str(); deviceConfig["name"] = name.c_str();
deviceConfig["sw_version"] = version.c_str(); deviceConfig["sw_version"] = version.c_str();
deviceConfig["manufacturer"] = getDevice().c_str();
deviceConfig["model"] = getManufacturer().c_str();
deviceConfig["manufacturer"] = getManufacturer().c_str();
deviceConfig["model"] = getDevice().c_str();
} }
ha_config_t() : ha_config_t(DEFAULT_BUFFER_SIZE) {} ha_config_t() : ha_config_t(DEFAULT_BUFFER_SIZE) {}


+ 1
- 1
code/espurna/ir.cpp View File

@ -247,7 +247,7 @@ void _irTXLoop() {
#if IR_USE_RAW #if IR_USE_RAW
_ir_sender.sendRaw(_ir_raw, _ir_repeat_size, _ir_freq); _ir_sender.sendRaw(_ir_raw, _ir_repeat_size, _ir_freq);
#else #else
_ir_sender.send(_ir_type, _ir_code, _ir_bits);
_ir_sender.send((decode_type_t)_ir_type, _ir_code, _ir_bits);
#endif #endif
// Update repeat count // Update repeat count


Loading…
Cancel
Save