فهرست منبع

small timing tweak

eried 2 سال پیش
والد
کامیت
35c751c9af

BIN
docs/webinstaller/build/ESP32CAM_Camera.fap


BIN
docs/webinstaller/build/ESP32CAM_Marauder.fap


BIN
docs/webinstaller/build/ESP32CAM_Motion.fap


BIN
docs/webinstaller/build/ESP32CAM_QRcode.fap


+ 6 - 3
flipper_companion_apps/applications/plugins/esp32cam_camera/camera.c

@@ -257,11 +257,14 @@ static UartEchoApp* camera_app_alloc() {
 
     furi_hal_power_disable_external_3_3v();
     furi_hal_power_disable_otg();
-    furi_delay_ms(100);
+    furi_delay_ms(200);
     furi_hal_power_enable_external_3_3v();
     furi_hal_power_enable_otg();
-    furi_delay_ms(1500); 
-    furi_hal_uart_tx(FuriHalUartIdUSART1, (uint8_t[1]){'c'}, 1); // Just to trigger the stream
+    for(int i=0;i<2;i++)
+    {
+        furi_delay_ms(500); 
+        furi_hal_uart_tx(FuriHalUartIdUSART1, (uint8_t[1]){'c'}, 1); 
+    }
     furi_delay_ms(1);
     return app;
 }

+ 6 - 3
flipper_companion_apps/applications/plugins/esp32cam_marauder_companion/wifi_marauder_app.c

@@ -94,11 +94,14 @@ int32_t wifi_marauder_app(void* p) {
     UNUSED(p);
     furi_hal_power_disable_external_3_3v();
     furi_hal_power_disable_otg();
-    furi_delay_ms(100);
+    furi_delay_ms(200);
     furi_hal_power_enable_external_3_3v();
     furi_hal_power_enable_otg();
-    furi_delay_ms(1500); 
-    furi_hal_uart_tx(FuriHalUartIdUSART1, (uint8_t[1]){'w'}, 1); // Just to trigger the maraurder mode
+    for(int i=0;i<2;i++)
+    {
+        furi_delay_ms(500); 
+        furi_hal_uart_tx(FuriHalUartIdUSART1, (uint8_t[1]){'w'}, 1);
+    }
     furi_delay_ms(1);
 
     WifiMarauderApp* wifi_marauder_app = wifi_marauder_app_alloc();

+ 6 - 3
flipper_companion_apps/applications/plugins/esp32cam_motion_detection/uart_echo.c

@@ -182,11 +182,14 @@ static UartEchoApp* uart_echo_app_alloc() {
 
     furi_hal_power_disable_external_3_3v();
     furi_hal_power_disable_otg();
-    furi_delay_ms(100);
+    furi_delay_ms(200);
     furi_hal_power_enable_external_3_3v();
     furi_hal_power_enable_otg();
-    furi_delay_ms(1500); 
-    furi_hal_uart_tx(FuriHalUartIdUSART1, (uint8_t[1]){'m'}, 1); // Just to trigger the qr code mode
+    for(int i=0;i<2;i++)
+    {
+        furi_delay_ms(500); 
+        furi_hal_uart_tx(FuriHalUartIdUSART1, (uint8_t[1]){'m'}, 1);
+    }
     furi_delay_ms(1);
     app->initialized = true;
     return app;

+ 6 - 3
flipper_companion_apps/applications/plugins/esp32cam_qrcode/uart_echo.c

@@ -176,11 +176,14 @@ static UartEchoApp* uart_echo_app_alloc() {
 
     furi_hal_power_disable_external_3_3v();
     furi_hal_power_disable_otg();
-    furi_delay_ms(100);
+    furi_delay_ms(200);
     furi_hal_power_enable_external_3_3v();
     furi_hal_power_enable_otg();
-    furi_delay_ms(1500); 
-    furi_hal_uart_tx(FuriHalUartIdUSART1, (uint8_t[1]){'q'}, 1); // Just to trigger the qr code mode
+    for(int i=0;i<2;i++)
+    {
+        furi_delay_ms(500); 
+        furi_hal_uart_tx(FuriHalUartIdUSART1, (uint8_t[1]){'q'}, 1);
+    }
     furi_delay_ms(1);
     app->initialized = true;
     return app;