Просмотр исходного кода

Fix Typo + Remove Unnecessary GPIO initialization

jblanked 1 год назад
Родитель
Сommit
d32af25080
3 измененных файлов с 1 добавлено и 11 удалено
  1. BIN
      .DS_Store
  2. 1 1
      flip_social_callback.h
  3. 0 10
      flipper_http.h

+ 1 - 1
flip_social_callback.h

@@ -627,7 +627,7 @@ static void flip_social_callback_draw_login(Canvas *canvas, void *model)
     {
         canvas_draw_str(canvas, 0, 7, "Wifi Dev Board disconnected.");
         canvas_draw_str(canvas, 0, 17, "Please connect to the board.");
-        canvas_draw_str(canvas, 0, 32, "If you board is connected,");
+        canvas_draw_str(canvas, 0, 32, "If your board is connected,");
         canvas_draw_str(canvas, 0, 42, "make sure you have flashed");
         canvas_draw_str(canvas, 0, 52, "your Dev Board with the");
         canvas_draw_str(canvas, 0, 62, "FlipperHTTP firmware.");

+ 0 - 10
flipper_http.h

@@ -42,12 +42,6 @@ bool flipper_http_delete_request_with_headers(const char *url, const char *heade
 bool flipper_http_save_received_data(size_t bytes_received, const char line_buffer[]);
 static char *trim(const char *str);
 
-// Define GPIO pins for UART
-GpioPin test_pins[2] = {
-    {.port = GPIOA, .pin = LL_GPIO_PIN_7}, // USART1_RX
-    {.port = GPIOA, .pin = LL_GPIO_PIN_6}  // USART1_TX
-};
-
 // State variable to track the UART state
 typedef enum
 {
@@ -253,10 +247,6 @@ bool flipper_http_init(FlipperHTTP_Callback callback, void *context)
     furi_thread_start(fhttp.rx_thread);
     fhttp.rx_thread_id = furi_thread_get_id(fhttp.rx_thread);
 
-    // Initialize GPIO pins for UART
-    furi_hal_gpio_init_simple(&test_pins[0], GpioModeInput);
-    furi_hal_gpio_init_simple(&test_pins[1], GpioModeOutputPushPull);
-
     // handle when the UART control is busy to avoid furi_check failed
     if (furi_hal_serial_control_is_busy(UART_CH))
     {