取消检测助眠耳夹检测 改为检测USB检测
This commit is contained in:
parent
055e7e84bd
commit
d70092e80e
@ -21,7 +21,7 @@ extern "C" {
|
||||
#define IOT_LAMP_DEVICE_GET_BATTERY "GetBattery"
|
||||
#define IOT_LAMP_DEVICE_OTA "ota"
|
||||
|
||||
#define IOT_LAMP_DEVICE_VERSION "1.0.7"
|
||||
#define IOT_LAMP_DEVICE_VERSION "1.0.8"
|
||||
|
||||
void lamp_init();
|
||||
void lamp_http_ota_start(char *url);
|
||||
|
@ -333,15 +333,15 @@ void sleep_helper_open(){
|
||||
bk_gpio_enable_output(45);
|
||||
gpio_dev_unmap(GPIO_50);
|
||||
bk_gpio_enable_input(GPIO_50);
|
||||
bk_gpio_enable_pull(GPIO_50);
|
||||
bk_gpio_pull_up(GPIO_50);
|
||||
//bk_gpio_enable_pull(GPIO_50);
|
||||
//bk_gpio_pull_up(GPIO_50);
|
||||
|
||||
rtos_delay_milliseconds(1000);
|
||||
uint8_t insert_value = bk_gpio_get_input(GPIO_50);
|
||||
LOGE("sleep_helper insert_value %d \n",insert_value);
|
||||
socket_insert = insert_value;
|
||||
if(socket_insert == 1){
|
||||
LOGE("sleep_helper open fail!! cable not insert %d \n",insert_value);
|
||||
LOGE("sleep_helper open fail!! battery charging... %d \n",insert_value);
|
||||
return ;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user