From c74689df5546906cac2e166906ee6211901df9f4 Mon Sep 17 00:00:00 2001 From: Jacky Sze Date: Mon, 13 May 2024 02:00:52 +0800 Subject: [PATCH] Fix linting issues --- src/ir_Toshiba.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ir_Toshiba.cpp b/src/ir_Toshiba.cpp index 1e8ffc492..bff423b6e 100644 --- a/src/ir_Toshiba.cpp +++ b/src/ir_Toshiba.cpp @@ -105,7 +105,7 @@ uint16_t IRToshibaAC::getInternalStateLength(const uint8_t state[], const uint16_t size) { if (size < kToshibaAcLengthByte) return 0; // Fix: Extract the last 4 bits instead - return std::min((uint16_t)((state[kToshibaAcLengthByte] & 0xF) + return std::min((uint16_t)((state[kToshibaAcLengthByte] & 0xF) + kToshibaAcMinLength), kToshibaACStateLengthLong); }