|
@@ -1932,7 +1932,11 @@ static void* sensor_thread(void* arg)
|
|
|
if (_globalSensorMangerTemp->sensor_interface_type==2)//干节点传感器
|
|
if (_globalSensorMangerTemp->sensor_interface_type==2)//干节点传感器
|
|
|
{
|
|
{
|
|
|
int nStatus=0;
|
|
int nStatus=0;
|
|
|
- g_switch_get_gpio_status(_globalSensorMangerTemp->sensor_addr+GPIO_PE14,&nStatus);
|
|
|
|
|
|
|
+#ifdef SCREEN_RGB
|
|
|
|
|
+ g_switch_get_gpio_status(_globalSensorMangerTemp->sensor_addr + GPIO_PE14, &nStatus);
|
|
|
|
|
+#else
|
|
|
|
|
+ g_switch_get_gpio_status(_globalSensorMangerTemp->sensor_addr + GPIO_PD11, &nStatus);
|
|
|
|
|
+#endif
|
|
|
_globalSensorInfo.val1=nStatus;
|
|
_globalSensorInfo.val1=nStatus;
|
|
|
_globalSensorInfo.val2=-1;
|
|
_globalSensorInfo.val2=-1;
|
|
|
if (nStatus == 0)
|
|
if (nStatus == 0)
|
|
@@ -1948,7 +1952,7 @@ static void* sensor_thread(void* arg)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
break;
|
|
break;
|
|
|
- #endif
|
|
|
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
case SENSOR_TYPE_GAS: // 气体
|
|
case SENSOR_TYPE_GAS: // 气体
|
|
|
{
|
|
{
|