mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-25 17:25:14 +03:00
Increase timeout on serial port
This commit is contained in:
parent
b5122b2150
commit
4d901f94bc
2 changed files with 3 additions and 3 deletions
|
@ -300,9 +300,9 @@ var serial = {
|
||||||
*/
|
*/
|
||||||
getTimeout: function () {
|
getTimeout: function () {
|
||||||
if (serial.bitrate >= 57600) {
|
if (serial.bitrate >= 57600) {
|
||||||
return 1500;
|
return 3000;
|
||||||
} else {
|
} else {
|
||||||
return 2500;
|
return 4000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -99,7 +99,7 @@ helper.mspQueue = (function (serial, MSP) {
|
||||||
|
|
||||||
privateScope.getTimeout = function (code) {
|
privateScope.getTimeout = function (code) {
|
||||||
if (code == MSPCodes.MSP_SET_REBOOT || code == MSPCodes.MSP_EEPROM_WRITE) {
|
if (code == MSPCodes.MSP_SET_REBOOT || code == MSPCodes.MSP_EEPROM_WRITE) {
|
||||||
return 6000;
|
return 5000;
|
||||||
} else {
|
} else {
|
||||||
return serial.getTimeout();
|
return serial.getTimeout();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue