|
|
@@ -160,8 +160,8 @@ static void dtu_thread_entry_recv(void *parameter)
|
|
|
static void dtu_thread_entry_send(void *parameter)
|
|
|
{
|
|
|
|
|
|
- static uint8_t dev_sta = 1;//开机置1
|
|
|
static uint8_t power_sta = 1;//开机置1
|
|
|
+ static uint8_t dev_sta = 1;//开机置1
|
|
|
rt_thread_delay(10000); //20S等待联网
|
|
|
if(atoi(device_status.net)==1) num_updata = 0;
|
|
|
while(1)
|
|
|
@@ -174,7 +174,7 @@ static void dtu_thread_entry_send(void *parameter)
|
|
|
{
|
|
|
HMI_WRITE("sleep=%d",1);
|
|
|
}
|
|
|
- if(Read_Real_Voltage()/100<10&&power_sta==1)
|
|
|
+ if(Read_Real_Voltage()/100<12&&power_sta==1)
|
|
|
{
|
|
|
rt_thread_delay(500);
|
|
|
static char warn_power[20];
|