From d874019d16fe0fed6d36450870316c4c10ab3cf1 Mon Sep 17 00:00:00 2001 From: Debayan Sutradhar Date: Wed, 7 Jun 2023 10:56:27 +0530 Subject: [PATCH] fix uinintialised error --- xmodem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmodem.cpp b/xmodem.cpp index 0d32593..4654be8 100644 --- a/xmodem.cpp +++ b/xmodem.cpp @@ -60,7 +60,7 @@ bool XModem::upload(const std::filesystem::path &filePath, const bool& startAfte unsigned char blockNumber2; unsigned char crcBlock[2]; - size_t currentBlock; + size_t currentBlock = 0; int32_t currentTry = 0; if (!std::filesystem::exists(filePath))