Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Jan 20, 2024
1 parent 141de86 commit 89c9dde
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion non_catalog_apps/usb_midi/usb/usb_midi_driver.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#include <furi.h>
#include <furi_hal_console.h>
#include <usb.h>
#include <usb_std.h>

Expand Down
7 changes: 3 additions & 4 deletions non_catalog_apps/usping/usping.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <furi.h>
#include <furi_hal.h>
#include <furi_hal_power.h>
#include <furi_hal_console.h>
#include <gui/gui.h>
#include <input/input.h>
#include <stdlib.h>
Expand Down Expand Up @@ -185,15 +184,15 @@ int32_t usping_app() {

usping_state_init(plugin_state);

furi_hal_console_disable();
FuriHalSerialHandle* serial_handle = furi_hal_serial_control_acquire(FuriHalSerialIdUsart);

plugin_state->mutex = furi_mutex_alloc(FuriMutexTypeNormal);
if(!plugin_state->mutex) {
FURI_LOG_E("usping", "cannot create mutex\r\n");
if(furi_hal_power_is_otg_enabled()) {
furi_hal_power_disable_otg();
}
furi_hal_console_enable();
furi_hal_serial_control_release(serial_handle);
furi_hal_power_suppress_charge_exit();
furi_message_queue_free(event_queue);
free(plugin_state);
Expand Down Expand Up @@ -257,7 +256,7 @@ int32_t usping_app() {
GpioSpeedVeryHigh,
GpioAltFn7USART1);

furi_hal_console_enable();
furi_hal_serial_control_release(serial_handle);

view_port_enabled_set(view_port, false);
gui_remove_view_port(gui, view_port);
Expand Down

0 comments on commit 89c9dde

Please sign in to comment.