Skip to content

Commit

Permalink
fix uinintialised error
Browse files Browse the repository at this point in the history
  • Loading branch information
rnayabed committed Jun 7, 2023
1 parent 304707a commit d874019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xmodem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit d874019

Please sign in to comment.