diff --git a/applications/subghz/subghz.c b/applications/subghz/subghz.c index 1a470386..607cda76 100644 --- a/applications/subghz/subghz.c +++ b/applications/subghz/subghz.c @@ -134,6 +134,10 @@ SubGhz* subghz_alloc() { void subghz_free(SubGhz* subghz) { furi_assert(subghz); + // Packet Test + view_dispatcher_remove_view(subghz->view_dispatcher, SubGhzViewStatic); + subghz_static_free(subghz->subghz_static); + // Packet Test view_dispatcher_remove_view(subghz->view_dispatcher, SubGhzViewTestPacket); subghz_test_packet_free(subghz->subghz_test_packet); diff --git a/firmware/targets/f5/api-hal/api-hal-vcp.c b/firmware/targets/f5/api-hal/api-hal-vcp.c index 6c2d71df..1f77460e 100644 --- a/firmware/targets/f5/api-hal/api-hal-vcp.c +++ b/firmware/targets/f5/api-hal/api-hal-vcp.c @@ -43,9 +43,9 @@ void _api_hal_vcp_deinit() { void _api_hal_vcp_control_line(uint8_t state) { // bit 0: DTR state, bit 1: RTS state // bool dtr = state & 0b01; - bool rts = state & 0b10; + bool dtr = state & 0b1; - if (rts) { + if (dtr) { if (!api_hal_vcp->alive) { api_hal_vcp->alive = true; _api_hal_vcp_rx_callback(&ascii_soh, 1); // SOH diff --git a/firmware/targets/f6/api-hal/api-hal-vcp.c b/firmware/targets/f6/api-hal/api-hal-vcp.c index 6c2d71df..1f77460e 100644 --- a/firmware/targets/f6/api-hal/api-hal-vcp.c +++ b/firmware/targets/f6/api-hal/api-hal-vcp.c @@ -43,9 +43,9 @@ void _api_hal_vcp_deinit() { void _api_hal_vcp_control_line(uint8_t state) { // bit 0: DTR state, bit 1: RTS state // bool dtr = state & 0b01; - bool rts = state & 0b10; + bool dtr = state & 0b1; - if (rts) { + if (dtr) { if (!api_hal_vcp->alive) { api_hal_vcp->alive = true; _api_hal_vcp_rx_callback(&ascii_soh, 1); // SOH