mirror of
https://github.com/esphome/esphome.git
synced 2025-01-10 19:47:47 +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
f977e9da2b
commit
76fe2e4871
@ -31,7 +31,7 @@ optional<SonyData> SonyProtocol::decode(RemoteReceiveData src) {
|
||||
.nbits = 0,
|
||||
};
|
||||
if (!src.expect_item(HEADER_HIGH_US, HEADER_LOW_US))
|
||||
return out;
|
||||
return {};
|
||||
|
||||
for (; out.nbits < 20; out.nbits++) {
|
||||
uint32_t bit;
|
||||
|
Loading…
Reference in New Issue
Block a user