Sanjay Govind 10 ماه پیش
والد
کامیت
f8bc91a1cc
2فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 4 1
      test.py
  2. 1 1
      virtual_portal.c

+ 4 - 1
test.py

@@ -12,4 +12,7 @@ except:
     pass
 dev.ctrl_transfer(0x21, 9, wValue=0x0200, wIndex=0, data_or_wLength=b"C\xff\x00\x00", timeout=None)
 time.sleep(0.001)
-dev.ctrl_transfer(0x21, 9, wValue=0x0200, wIndex=0, data_or_wLength=b"J\x00\x00\xff\x00\x00\x10", timeout=None)
+dev.ctrl_transfer(0x21, 9, wValue=0x0200, wIndex=0, data_or_wLength=b"J\x00\x00\xff\x00\x00\x30", timeout=None)
+
+time.sleep(5)
+dev.ctrl_transfer(0x21, 9, wValue=0x0200, wIndex=0, data_or_wLength=b"J\x00\x00\x00\xff\x00\x10", timeout=None)

+ 1 - 1
virtual_portal.c

@@ -128,7 +128,7 @@ VirtualPortal* virtual_portal_alloc(NotificationApp* notifications) {
     virtual_portal->led_timer = furi_timer_alloc(virtual_portal_tick,
                                                  FuriTimerTypePeriodic, virtual_portal);
 
-    furi_timer_start(virtual_portal->led_timer, 100);
+    furi_timer_start(virtual_portal->led_timer, 10);
 
     return virtual_portal;
 }