1.ota cmd修改
This commit is contained in:
parent
46909f24f1
commit
fcbfc1d655
|
@ -1387,7 +1387,7 @@ BOOL sf_cmd_ftp_ota(unsigned char argc, char **argv)
|
|||
{
|
||||
//UINT32 value;
|
||||
UIMenuStoreInfo *puiPara = sf_ui_para_get();
|
||||
if(4 == argc)
|
||||
if(4 <= argc)
|
||||
{
|
||||
memset(puiPara ->OtaFtpIp,'\0', sizeof(puiPara ->OtaFtpIp));
|
||||
memset(puiPara ->OtaFtpPort, '\0', sizeof(puiPara ->OtaFtpPort));
|
||||
|
@ -1400,11 +1400,15 @@ BOOL sf_cmd_ftp_ota(unsigned char argc, char **argv)
|
|||
|
||||
Save_MenuInfo();
|
||||
}
|
||||
|
||||
if(5 == argc)
|
||||
{
|
||||
sleep(1);
|
||||
SF_MESSAGE_BUF_S stMessageBuf = {0};
|
||||
stMessageBuf.arg1 = SF_DEV_CMD_OTA;
|
||||
stMessageBuf.cmdId = CMD_DEV;
|
||||
sf_com_message_send_to_app(&stMessageBuf);
|
||||
}
|
||||
|
||||
printf("[%s:%d] OtaFtpIp:%s\n", __FUNCTION__, __LINE__, puiPara->OtaFtpIp);
|
||||
printf("[%s:%d] OtaFtpPort:%s\n", __FUNCTION__, __LINE__, puiPara->OtaFtpPort);
|
||||
|
|
Loading…
Reference in New Issue
Block a user