|
@@ -678,10 +678,11 @@ void DataProcess(UWORD ID, UBYTE Mode, UWORD Cmd, UBYTE Data[]) /* parasoft-supp
|
|
|
{
|
|
|
if (strncmp("CLEAR", (char *)Data, DataLength) == 0)
|
|
|
{
|
|
|
+ DISABLE_IRQ;
|
|
|
+
|
|
|
flash_voParaInit();
|
|
|
flash_voErrorClear();
|
|
|
-
|
|
|
- DISABLE_IRQ;
|
|
|
+
|
|
|
/* Parameter default value write*/
|
|
|
i2c_voDefaultWriteBuffer();
|
|
|
i2c_voInfoWrite2EE(&i2c_stTXCoef, &i2c_stTXOut);
|
|
@@ -705,13 +706,17 @@ void DataProcess(UWORD ID, UBYTE Mode, UWORD Cmd, UBYTE Data[]) /* parasoft-supp
|
|
|
{
|
|
|
if (strncmp("RECOVERY", (char *)Data, DataLength) == 0)
|
|
|
{
|
|
|
- flash_voParaInit();
|
|
|
DISABLE_IRQ;
|
|
|
+
|
|
|
+ flash_voParaInit();
|
|
|
+
|
|
|
/* Parameter default value write*/
|
|
|
i2c_voDefaultWriteBuffer();
|
|
|
i2c_voInfoWrite2EE(&i2c_stTXCoef, &i2c_stTXOut);
|
|
|
cp_stFlg.ParaSaveEEFlg = FALSE;
|
|
|
+
|
|
|
ENABLE_IRQ;
|
|
|
+
|
|
|
if (I2C_EE_ComuFltFlg != TRUE)
|
|
|
{
|
|
|
SendData(ID_MC_TO_CDL, MODE_REPORT, 0xA903, (UBYTE *)"ACK");
|
|
@@ -760,13 +765,16 @@ void DataProcess(UWORD ID, UBYTE Mode, UWORD Cmd, UBYTE Data[]) /* parasoft-supp
|
|
|
{
|
|
|
if (strncmp("LOG CLEAR", (char *)Data, DataLength) == 0)
|
|
|
{
|
|
|
+ DISABLE_IRQ;
|
|
|
+
|
|
|
flash_voErrorClear();
|
|
|
|
|
|
- DISABLE_IRQ;
|
|
|
/* History Default Value Write */
|
|
|
i2c_voHistoryDefaultWriteBuffer();
|
|
|
i2c_voHistoryWrite2EE(&i2c_stTXCoef, &i2c_stTXOut);
|
|
|
+
|
|
|
ENABLE_IRQ;
|
|
|
+
|
|
|
if (I2C_EE_ComuFltFlg != TRUE)
|
|
|
{
|
|
|
SendData(ID_MC_TO_CDL, MODE_REPORT, 0xA903, (UBYTE *)"ACK");
|