Skip to content

Commit

Permalink
fix: pad 0xff when add hex and elf to upgrade pack (#646)
Browse files Browse the repository at this point in the history
pad 0xff when adding hex and elf file to upgrade pack
  • Loading branch information
dcayy authored Jun 7, 2024
1 parent 0f3cd82 commit 5c5d318
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion upgrade/pack_builder/InputElf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ namespace application
{
uint32_t address = i.first;
if (result.size() < address + 1 - startAddress)
result.resize(address + 1 - startAddress);
result.resize(address + 1 - startAddress, 0xff);

result[address - startAddress] = i.second;
}
Expand Down
2 changes: 1 addition & 1 deletion upgrade/pack_builder/InputHex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace application
{
uint32_t address = i.first;
if (result.size() < address + 1 - startAddress)
result.resize(address + 1 - startAddress);
result.resize(address + 1 - startAddress, 0xff);

result[address - startAddress] = i.second;
}
Expand Down

0 comments on commit 5c5d318

Please sign in to comment.