Commit 94409739 authored by 薛小虎's avatar 薛小虎

fix: 解决wifi ota升级问题

parent cfedf395
...@@ -12,6 +12,15 @@ typedef enum ...@@ -12,6 +12,15 @@ typedef enum
BT_Authr, BT_Authr,
}BT_Sts_Enum; }BT_Sts_Enum;
typedef enum
{
Call_Idle = 0,
Call_OutCalling,
Call_IncomeCalling,
Call_Authr,
}Call_Sts_Enum;
typedef struct typedef struct
{ {
uint8_t BT_Sts; uint8_t BT_Sts;
......
...@@ -129,33 +129,11 @@ void bsp_Uart_Init(void ) ...@@ -129,33 +129,11 @@ void bsp_Uart_Init(void )
extern void simple_ota_main(void); extern void simple_ota_main(void);
void simple_ota_service(void) void simple_ota_service(void)
{ {
/*test*/
// vTaskDelay(1000);
// printf("ota 1\r\n");
// vTaskDelay(1000);
// printf("ota 2\r\n");
// vTaskDelay(1000);
// printf("ota 3\r\n");
// vTaskDelay(1000);
// printf("ota 4\r\n");
// vTaskDelay(1000);
// printf("ota 5\r\n");
// vTaskDelay(1000);
// printf("ota 6\r\n");
// vTaskDelay(1000);
// printf("ota 7\r\n");
// vTaskDelay(1000);
// printf("ota 8\r\n");
// vTaskDelay(1000);
// printf("ota 9\r\n");
// vTaskDelay(1000);
// simple_ota_main();
if(Wifi_OTA_Request == 1) if(Wifi_OTA_Request == 1)
{ {
Wifi_OTA_Request = 2; Wifi_OTA_Request = 2;
simple_ota_main(); simple_ota_main();
vTaskDelay(portMAX_DELAY);
} }
} }
......
...@@ -317,7 +317,7 @@ CONFIG_PARTITION_TABLE_MD5=y ...@@ -317,7 +317,7 @@ CONFIG_PARTITION_TABLE_MD5=y
# #
# Example Configuration # Example Configuration
# #
CONFIG_EXAMPLE_FIRMWARE_UPGRADE_URL="http://192.168.30.1:3200/Qj500-7C.bin" CONFIG_EXAMPLE_FIRMWARE_UPGRADE_URL="http://192.168.137.1:3200/Qj500-7C.bin"
# CONFIG_EXAMPLE_USE_CERT_BUNDLE is not set # CONFIG_EXAMPLE_USE_CERT_BUNDLE is not set
CONFIG_EXAMPLE_SKIP_COMMON_NAME_CHECK=y CONFIG_EXAMPLE_SKIP_COMMON_NAME_CHECK=y
# CONFIG_EXAMPLE_FIRMWARE_UPGRADE_BIND_IF is not set # CONFIG_EXAMPLE_FIRMWARE_UPGRADE_BIND_IF is not set
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment