1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-24 16:55:24 +03:00

Merge pull request #354 from KiteAnton/additional_cli_time

Additional cli time for large text dumps
This commit is contained in:
Albert Kravcov 2016-05-28 13:47:11 +02:00
commit ace46998ce

View file

@ -99,7 +99,10 @@ TABS.cli.sendSlowly = function (out_arr, i, timeout_needle) {
bufView[out_arr[i].length] = 0x0D; // enter (\n)
serial.send(bufferOut);
}, timeout_needle * 5);
if (out_arr[i].substring(1, 7) == 'profile') {
timeout_needle *= 2; // switching profiles needs additional time
}
}, timeout_needle * 15);
};
TABS.cli.read = function (readInfo) {