|
|
@@ -571,6 +571,7 @@ static void HMI_Decode(void)
|
|
|
if(device_status.version_type==4|| //水稻
|
|
|
device_status.version_type==41|| //4.0
|
|
|
device_status.version_type==42|| //低端款
|
|
|
+ device_status.version_type==43|| //中端款
|
|
|
device_status.version_type==12) //高空带拍照
|
|
|
{
|
|
|
device_status.clear_status=1;
|
|
|
@@ -607,6 +608,7 @@ static void HMI_Decode(void)
|
|
|
else if (strstr(rx_buffer,"putTest.switchLamp=1")!=NULL)
|
|
|
{
|
|
|
device_status.test_flag=1;
|
|
|
+ device_status.rain_status = 0;
|
|
|
rt_kprintf("Open Lamp!\n");
|
|
|
ctr_lamp(ON,1);
|
|
|
#if LAMP_EN == 1
|
|
|
@@ -1322,18 +1324,6 @@ static void HMI_Decode(void)
|
|
|
|
|
|
}
|
|
|
}
|
|
|
- //5.0测报灯
|
|
|
- else if (strstr(rx_buffer,"SwversionV5")!=NULL) {
|
|
|
- device_status.dtype = 3;
|
|
|
- if(device_status.version_type!=5)
|
|
|
- {
|
|
|
- device_status.version_type = 5;
|
|
|
- sprintf(device_status.driver, "%s",VERSION_V5);
|
|
|
- ef_set_env_blob("version_type",&device_status.version_type,sizeof(device_status.version_type)); //版本类型
|
|
|
- ef_set_env_blob("dtype",&device_status.dtype,sizeof(device_status.dtype)); //版本类型
|
|
|
- MA_save();
|
|
|
- }
|
|
|
- }
|
|
|
//吸虫塔
|
|
|
else if (strstr(rx_buffer,"SwversionV6")!=NULL) {
|
|
|
device_status.dtype = 3;
|
|
|
@@ -2042,9 +2032,6 @@ void Check_ParamConfig(void)
|
|
|
else if (device_status.version_type==41) {
|
|
|
rt_sprintf(device_status.driver, "%s",VERSION_HK);
|
|
|
}
|
|
|
- else if (device_status.version_type==5) {
|
|
|
- rt_sprintf(device_status.driver, "%s",VERSION_V5);
|
|
|
- }
|
|
|
else if (device_status.version_type==6)
|
|
|
{
|
|
|
//打开相机供电;
|