do no msp_write_eeprom from msp if armed , tel the gui about the error
This commit is contained in:
parent
33614a5b22
commit
7c74e0e9ca
|
@ -590,8 +590,12 @@ static void evaluateCommand(void)
|
||||||
headSerialReply(0);
|
headSerialReply(0);
|
||||||
break;
|
break;
|
||||||
case MSP_EEPROM_WRITE:
|
case MSP_EEPROM_WRITE:
|
||||||
writeEEPROM(0, true);
|
if (f.ARMED) {
|
||||||
headSerialReply(0);
|
headSerialError(0);
|
||||||
|
}else
|
||||||
|
writeEEPROM(0, true);
|
||||||
|
headSerialReply(0);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case MSP_DEBUG:
|
case MSP_DEBUG:
|
||||||
headSerialReply(8);
|
headSerialReply(8);
|
||||||
|
|
Loading…
Reference in New Issue