From 38cc434bda402fe2d045f4a4431822bc1bd23db8 Mon Sep 17 00:00:00 2001 From: David Conran Date: Wed, 24 Jul 2024 22:43:42 +1000 Subject: [PATCH] Fix `decodeYork()` parameter names & defaults. Clean up some code ugliness. Not even sure it should have compiled before. --- src/IRrecv.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/IRrecv.h b/src/IRrecv.h index 7adf5eb1b..6d12d98a7 100644 --- a/src/IRrecv.h +++ b/src/IRrecv.h @@ -879,8 +879,8 @@ class IRrecv { #endif // DECODE_WOWWEE #if DECODE_YORK bool decodeYork(decode_results *results, - uint16_t kStartOffset, - const uint16_t kYorkBits, + uint16_t offset = kStartOffset, + const uint16_t nbits = kYorkBits, const bool strict = true); #endif // DECODE_YORK };