From 7b3c672f4774d79e2394f2079ebc62c3e2330182 Mon Sep 17 00:00:00 2001 From: Orestes Sanchez Date: Wed, 8 Nov 2023 22:37:55 +0100 Subject: [PATCH] Revert "fix: wrong parsing of firmware version in SnapCap." This reverts commit b326fe2571bf41778114f2bb74ea9504a8d74fae. --- drivers/auxiliary/snapcap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/auxiliary/snapcap.cpp b/drivers/auxiliary/snapcap.cpp index 1a40794eb8..2e9ff9dd2d 100644 --- a/drivers/auxiliary/snapcap.cpp +++ b/drivers/auxiliary/snapcap.cpp @@ -591,7 +591,7 @@ bool SnapCap::getFirmwareVersion() return false; char versionString[4] = { 0 }; - snprintf(versionString, 3, "%s", response + 4); + snprintf(versionString, 4, "%s", response + 2); FirmwareTP[0].setText(versionString); FirmwareTP.apply();