Compare commits
No commits in common. "828f92af0bef8535bf345f145b8b5210eb5b0a21" and "35de03a18614be8aa9b40b7adcfa81edfefc7c87" have entirely different histories.
828f92af0b
...
35de03a186
@ -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.8"
|
||||
#define IOT_LAMP_DEVICE_VERSION "1.0.7"
|
||||
|
||||
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!! battery charging... %d \n",insert_value);
|
||||
LOGE("sleep_helper open fail!! cable not insert %d \n",insert_value);
|
||||
return ;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user