恢复出厂设置 LED灯闪烁

diff --git a/bootable/recovery/recovery_main.cpp b/bootable/recovery/recovery_main.cpp
old mode 100644
new mode 100755
index de8ac1f…e481678
— a/bootable/recovery/recovery_main.cpp
+++ b/bootable/recovery/recovery_main.cpp
@@ -310,6 +310,39 @@ static void redirect_stdio(const char* filename) {
}
}

+static char on[] = “1”;
+static char off[] = “0”;
+
+
+int set_led_status(int status){

  •   int pcb_fd;
    
  •   int count;
    
  •   pcb_fd=open("/sys/class/leds/red_led/brightness", O_RDWR); /*open*/
    
  •   if(status)
    
  •           //system(" echo 0>  /sys/class/leds/red_led/brightness");
    
  •           count=write(pcb_fd, on, sizeof(on)) ;
    
  •   else
    
  •           count=write(pcb_fd, off, sizeof(off)) ;
    
  •   close(pcb_fd);
    
  •   LOG(INFO) << "set_led_status status =" << status <<"  pcb_fd=" << pcb_fd << "  count=" << count;
    
  •   return 0;
    

+}
+
+void LED_thread(){