Explorar el Código

1、修复屏状态灯初始化显示红灯问题。

liyuezong hace 1 año
padre
commit
f455b52691
Se han modificado 4 ficheros con 4 adiciones y 4 borrados
  1. 1 1
      cust_data/qt/S90PDUApp
  2. 1 1
      cust_data/qt/rgb/S90PDUApp
  3. 1 1
      cust_data/qt/rgb_lcd/S90PDUApp
  4. 1 1
      pro/ui/gpio.c

+ 1 - 1
cust_data/qt/S90PDUApp

@@ -19,6 +19,7 @@ start_snmpd()
 start_pdu()
 {
     #run smartPDU
+	led_on
     $APPDIR/smartPDU &
 }
 led_on()
@@ -55,7 +56,6 @@ led_on()
 start_lcd()
 {
     #light lcd
-    led_on
 if [ -f $APPDIR/Qt_Test ]; then
     fbinit
     $APPDIR/Qt_Test --platform=linuxfb &

+ 1 - 1
cust_data/qt/rgb/S90PDUApp

@@ -19,6 +19,7 @@ start_snmpd()
 start_pdu()
 {
     #run smartPDU
+	led_on
     $APPDIR/smartPDU &
 }
 led_on()
@@ -55,7 +56,6 @@ led_on()
 start_lcd()
 {
     #light lcd
-    led_on
 if [ -f $APPDIR/Qt_Test ]; then
 #    fbinit
     $APPDIR/Qt_Test --platform=linuxfb:tslib=/dev/input/event4 &

+ 1 - 1
cust_data/qt/rgb_lcd/S90PDUApp

@@ -19,6 +19,7 @@ start_snmpd()
 start_pdu()
 {
     #run smartPDU
+	led_on
     $APPDIR/smartPDU &
 }
 led_on()
@@ -56,7 +57,6 @@ led_on()
 start_lcd()
 {
     #light lcd
-    led_on
 if [ -f $APPDIR/Qt_Test ]; then
     fbinit
     $APPDIR/Qt_Test --platform=linuxfb &

+ 1 - 1
pro/ui/gpio.c

@@ -58,7 +58,7 @@ int gpio_init(int gpio, int io)
 		LOGE("gpio_init, open gpio value failed\n");
 		return -1;
 	}
-    
+    log_i("gpio_init, open gpio %d success\n",gpio);
     return fd;
 }