mirror of
https://github.com/esphome/esphome.git
synced 2024-12-29 17:47:51 +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
@ -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