|
|
@@ -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))
|
|
|
{
|