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

reboot procedure improvements

This commit is contained in:
Pawel Spychalski (DzikuVx) 2017-01-30 20:34:35 +01:00
parent e711e5ba53
commit 8e9bded7a7
4 changed files with 50 additions and 3 deletions

View file

@ -205,6 +205,13 @@ var MSP = {
message.onFinish = callback_msp;
message.onSend = callback_sent;
/*
* In case of MSP_REBOOT special procedure is required
*/
if (code == MSPCodes.MSP_SET_REBOOT || code == MSPCodes.MSP_EEPROM_WRITE) {
message.retryCounter = 10;
}
helper.mspQueue.put(message);
return true;