1
0
Fork 0
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:
mikeller 2019-09-02 20:55:51 +12:00
parent f547d84eef
commit 2336f6bd6f

View file

@ -60,6 +60,9 @@ function generateData(firmware, input, startAddress) {
throw new Error('Configuration area in firmware not free.');
}
// Add 0 terminator
input = input + '\0';
var inputIndex = 0;
while (inputIndex < input.length) {
var remaining = input.length - inputIndex;