Skip to content

Commit

Permalink
Revert "fix: wrong parsing of firmware version in SnapCap."
Browse files Browse the repository at this point in the history
This reverts commit b326fe2.
  • Loading branch information
miceno committed Nov 8, 2023
1 parent 153381d commit 7b3c672
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/auxiliary/snapcap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 7b3c672

Please sign in to comment.