1.尝试OTA重启时保持电源供电
This commit is contained in:
parent
e4d47a22af
commit
52b9e4cd9d
@ -331,6 +331,9 @@ bk_err_t gpio_hal_wakeup_interrupt_clear()
|
||||
static inline bool is_gpio_for_current_cpu(int gpio_id){
|
||||
const gpio_default_map_t default_map[] = GPIO_DEFAULT_DEV_CONFIG;
|
||||
for(int i = 0; i < sizeof(default_map)/sizeof(gpio_default_map_t); i++){
|
||||
//helloyifa {
|
||||
if(default_map[i].gpio_id == GPIO_51) continue;
|
||||
//helloyifa }
|
||||
if (gpio_id == default_map[i].gpio_id){
|
||||
return true;
|
||||
}
|
||||
|
@ -171,6 +171,10 @@ static bk_err_t send_audio_msg(void)
|
||||
|
||||
int send_audio_data_to_trans(uint8_t *data, unsigned int len)
|
||||
{
|
||||
if (!g_connected_flag)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
#if CONFIG_USE_OPUS_CODEC
|
||||
if (ring_buffer_get_free_size(&mic_data_rb) >= len)
|
||||
{
|
||||
|
@ -330,7 +330,7 @@ void sleep_helper_set_level(sleep_model_level level){
|
||||
//rtos_delay_milliseconds(100);
|
||||
//bk_pwm_init(pwm_chan, &config);
|
||||
//bk_pwm_start(pwm_chan);
|
||||
LOGE("sleep_helper period_cycle e %d duty_cycle %d\n",config.period_cycle,config.duty_cycle);
|
||||
//LOGE("sleep_helper period_cycle e %d duty_cycle %d\n",config.period_cycle,config.duty_cycle);
|
||||
thing_report_iot_state_number(IOT_SLEEP_HELPER_DEVICE_NAME,IOT_SLEEP_HELPER_DEVICE_PARAM_LEVEL,level);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user