Skip to content

Commit 38cc434

Browse files
authored
Fix decodeYork() parameter names & defaults.
Clean up some code ugliness. Not even sure it should have compiled before.
1 parent 702ec8b commit 38cc434

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/IRrecv.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -879,8 +879,8 @@ class IRrecv {
879879
#endif // DECODE_WOWWEE
880880
#if DECODE_YORK
881881
bool decodeYork(decode_results *results,
882-
uint16_t kStartOffset,
883-
const uint16_t kYorkBits,
882+
uint16_t offset = kStartOffset,
883+
const uint16_t nbits = kYorkBits,
884884
const bool strict = true);
885885
#endif // DECODE_YORK
886886
};

0 commit comments

Comments
 (0)