Sfoglia il codice sorgente

Specify type within virtual_portal instead of having differnt start functions

Sanjay Govind 11 mesi fa
parent
commit
a8268f5af4
1 ha cambiato i file con 0 aggiunte e 20 eliminazioni
  1. 0 20
      helpers/pof_usb.c

+ 0 - 20
helpers/pof_usb.c

@@ -204,26 +204,6 @@ static void pof_usb_init(usbd_device* dev, FuriHalUsbInterface* intf, void* ctx)
     furi_thread_start(pof_usb->thread);
 }
 
-static void pof_usb_init_xbox_360(usbd_device* dev, FuriHalUsbInterface* intf, void* ctx) {
-    UNUSED(intf);
-    PoFUsb* pof_usb = ctx;
-    pof_cur = pof_usb;
-    pof_usb->dev = dev;
-
-    usbd_reg_config(dev, pof_usb_ep_config);
-    usbd_reg_control(dev, pof_xbox_360_control);
-    UNUSED(pof_xbox_360_control);
-    usbd_connect(dev, true);
-
-    pof_usb->thread = furi_thread_alloc();
-    furi_thread_set_name(pof_usb->thread, "PoFUsb");
-    furi_thread_set_stack_size(pof_usb->thread, 2 * 1024);
-    furi_thread_set_context(pof_usb->thread, ctx);
-    furi_thread_set_callback(pof_usb->thread, pof_thread_worker);
-
-    furi_thread_start(pof_usb->thread);
-}
-
 static void pof_usb_deinit(usbd_device* dev) {
     usbd_reg_config(dev, NULL);
     usbd_reg_control(dev, NULL);