Src/application/serial_at_cmd_app.c
@@ -79,6 +79,7 @@ } } extern uint8_t ceshimode; void UsartParseDataHandler(uint8_t data) { static UsartRecvPackState usart_receive_state = UsartReceiveWaitHead0; @@ -104,6 +105,11 @@ { case CMD_WRITE: //从mUsartReceivePack中读取pack_length长度的字节,放到全局变量中 if(pack_index==0xF0) { ceshimode=1; break; } if(mUsartReceivePack[0]==1) UpdateProcess(pack_index); memcpy((uint8_t*)&g_com_map + pack_index, mUsartReceivePack, pack_datalen);