1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 22:35:23 +03:00

do no msp_write_eeprom from msp if armed , tel the gui about the error

This commit is contained in:
treymarc 2014-04-19 00:04:37 +00:00
parent 33614a5b22
commit 7c74e0e9ca

View file

@ -590,8 +590,12 @@ static void evaluateCommand(void)
headSerialReply(0);
break;
case MSP_EEPROM_WRITE:
writeEEPROM(0, true);
headSerialReply(0);
if (f.ARMED) {
headSerialError(0);
}else
writeEEPROM(0, true);
headSerialReply(0);
}
break;
case MSP_DEBUG:
headSerialReply(8);