mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-19 14:25:14 +03:00
Added 0 terminator to custom defaults before flashing.
This commit is contained in:
parent
f547d84eef
commit
2336f6bd6f
1 changed files with 3 additions and 0 deletions
|
@ -60,6 +60,9 @@ function generateData(firmware, input, startAddress) {
|
||||||
throw new Error('Configuration area in firmware not free.');
|
throw new Error('Configuration area in firmware not free.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add 0 terminator
|
||||||
|
input = input + '\0';
|
||||||
|
|
||||||
var inputIndex = 0;
|
var inputIndex = 0;
|
||||||
while (inputIndex < input.length) {
|
while (inputIndex < input.length) {
|
||||||
var remaining = input.length - inputIndex;
|
var remaining = input.length - inputIndex;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue