更新 OTA 位置,移除测试文件
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <string.h>
|
||||
|
||||
/* 配置 */
|
||||
#include "ota.h"
|
||||
#include "config/board_config.h"
|
||||
#include "config/app_config.h"
|
||||
|
||||
@@ -50,6 +51,9 @@ void work_app_main(void *arg)
|
||||
board_cfg_init(); // 板级配置
|
||||
app_cfg_init(); // 应用配置
|
||||
|
||||
/* 初始化 OTA 功能*/
|
||||
ota_partition_check();
|
||||
|
||||
/* 初始化其他优先级的工作队列 */
|
||||
_init_work_q();
|
||||
|
||||
@@ -87,9 +91,9 @@ static void _init_work_q(void)
|
||||
static void _init_ws2812(void)
|
||||
{
|
||||
#if (CONFIG_LED_STRIP_MAX_LEDS)
|
||||
ws2812_spi_led_strip_init(SPI2_HOST, CONFIG_LED_STRIP_MAX_LEDS);
|
||||
ws2812_spi_led_strip_init(g_cfg_board->led_spi.spi_id, CONFIG_LED_STRIP_MAX_LEDS);
|
||||
#else
|
||||
ws2812_spi_led_strip_init(SPI2_HOST, 10);
|
||||
ws2812_spi_led_strip_init(g_cfg_board->led_spi.spi_id, 10);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user