mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 09:18:00 +01:00
Fix remote_receiver always shows sony (#617)
Fixes https://github.com/esphome/issues/issues/383#issuecomment-498370572
This commit is contained in:
parent
11605a36f7
commit
8f3635b167
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ optional<SonyData> SonyProtocol::decode(RemoteReceiveData src) {
|
||||||
.nbits = 0,
|
.nbits = 0,
|
||||||
};
|
};
|
||||||
if (!src.expect_item(HEADER_HIGH_US, HEADER_LOW_US))
|
if (!src.expect_item(HEADER_HIGH_US, HEADER_LOW_US))
|
||||||
return out;
|
return {};
|
||||||
|
|
||||||
for (; out.nbits < 20; out.nbits++) {
|
for (; out.nbits < 20; out.nbits++) {
|
||||||
uint32_t bit;
|
uint32_t bit;
|
||||||
|
|
Loading…
Reference in a new issue