From f68e2285e8aca8f4820962c619120a2c0b7cc4f0 Mon Sep 17 00:00:00 2001 From: Marius Bezuidenhout Date: Thu, 6 Jun 2024 09:39:23 +0200 Subject: [PATCH] Fixed incorrect output size clamping (#21568) --- tasmota/tasmota_support/support.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_support/support.ino b/tasmota/tasmota_support/support.ino index 0552a30d1..57f207c67 100755 --- a/tasmota/tasmota_support/support.ino +++ b/tasmota/tasmota_support/support.ino @@ -646,7 +646,7 @@ int32_t HexToBytes(const char* hex, uint8_t* out, size_t out_len) { } size_t bytes_out = len / 2; - if (bytes_out < out_len) { + if (bytes_out > out_len) { bytes_out = out_len; }