|
@@ -402,7 +402,6 @@ void DataProcess(UWORD ID, UBYTE Mode, UWORD Cmd, UBYTE Data[]) /* parasoft-supp
|
|
|
//电池关闭电源前控制器存储数据
|
|
|
power_stPowStateOut.powerstate = POWER_OFF;
|
|
|
power_stPowStateOut.blPowerStartupFlg = FALSE;
|
|
|
- PowerOffDTimeOut = cp_ulSystickCnt;
|
|
|
//发送关机就绪信号
|
|
|
SendData(ID_MC_BC, MODE_REPORT, 0x1305, (UBYTE *)"READY");
|
|
|
break;
|
|
@@ -423,7 +422,6 @@ void DataProcess(UWORD ID, UBYTE Mode, UWORD Cmd, UBYTE Data[]) /* parasoft-supp
|
|
|
//仪表关闭电源前控制器存储数据
|
|
|
power_stPowStateOut.powerstate = POWER_OFF;
|
|
|
power_stPowStateOut.blPowerStartupFlg = FALSE;
|
|
|
- PowerOffDTimeOut = cp_ulSystickCnt;
|
|
|
//发送关机就绪信号
|
|
|
SendData(ID_MC_BC, MODE_REPORT, 0x1305, (UBYTE *)"READY");
|
|
|
break;
|
|
@@ -663,7 +661,6 @@ void DataProcess(UWORD ID, UBYTE Mode, UWORD Cmd, UBYTE Data[]) /* parasoft-supp
|
|
|
//执行关机,需硬件重启
|
|
|
power_stPowStateOut.powerstate = POWER_OFF;
|
|
|
power_stPowStateOut.blPowerStartupFlg = FALSE;
|
|
|
- PowerOffDTimeOut = cp_ulSystickCnt;
|
|
|
SendData(ID_MC_TO_CDL, MODE_REPORT, 0xA903, (uint8_t *)"ACK");
|
|
|
}
|
|
|
else if (strncmp("RESET", (char *)Data, DataLength) == 0)
|
|
@@ -671,7 +668,6 @@ void DataProcess(UWORD ID, UBYTE Mode, UWORD Cmd, UBYTE Data[]) /* parasoft-supp
|
|
|
//执行复位,跳转进入Bootloader
|
|
|
power_stPowStateOut.powerstate = POWER_RESET;
|
|
|
power_stPowStateOut.blPowerStartupFlg = FALSE;
|
|
|
- PowerOffDTimeOut = cp_ulSystickCnt;
|
|
|
SendData(ID_MC_TO_CDL, MODE_REPORT, 0xA903, (uint8_t *)"ACK");
|
|
|
}
|
|
|
break;
|