Merge pull request #513 from JL2210/disable-padding-option

Add option to disable padding in rgblink
This commit is contained in:
Eldred Habert
2020-04-27 11:05:55 +02:00
committed by GitHub
4 changed files with 27 additions and 6 deletions

View File

@@ -175,9 +175,13 @@ static void writeBank(struct SortedSection *bankSections, uint16_t baseOffset,
bankSections = bankSections->next;
}
while (offset < size) {
putc(overlayFile ? getc(overlayFile) : padValue, outputFile);
offset++;
if (!disablePadding) {
while (offset < size) {
putc(overlayFile ? getc(overlayFile)
: padValue,
outputFile);
offset++;
}
}
}