mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 15:38:11 +01:00
Update ir_transmitter.h
This commit is contained in:
parent
b52d3265dc
commit
4503495328
1 changed files with 2 additions and 2 deletions
|
@ -8,12 +8,12 @@ namespace esphome {
|
|||
namespace midea {
|
||||
|
||||
using remote_base::RemoteTransmitterBase;
|
||||
using remote_base::MideaData;
|
||||
using IrData = remote_base::MideaData;
|
||||
|
||||
class IrTransmitter {
|
||||
public:
|
||||
void set_transmitter(RemoteTransmitterBase *transmitter) { this->transmitter_ = transmitter; }
|
||||
void transmit(MideaData &data) {
|
||||
void transmit(IrData &data) {
|
||||
data.finalize();
|
||||
auto transmit = this->transmitter_->transmit();
|
||||
remote_base::MideaProtocol().encode(transmit.get_data(), data);
|
||||
|
|
Loading…
Reference in a new issue