diff --git a/applications/external/magspoof/helpers/mag_helpers.c b/applications/external/magspoof/helpers/mag_helpers.c index 997cf3862..89c451f62 100644 --- a/applications/external/magspoof/helpers/mag_helpers.c +++ b/applications/external/magspoof/helpers/mag_helpers.c @@ -126,8 +126,6 @@ void play_track(uint8_t* bits_manchester, uint16_t n_bits, MagSetting* setting, void tx_init_rfid() { // initialize RFID system for TX - // OTG needed for RFID? Or just legacy from GPIO? - // furi_hal_power_enable_otg(); furi_hal_ibutton_pin_configure(); // furi_hal_ibutton_start_drive(); @@ -155,7 +153,6 @@ void tx_deinit_rfid() { furi_hal_gpio_write(RFID_PIN_OUT, 0); furi_hal_rfid_pins_reset(); - furi_hal_power_disable_otg(); } void tx_init_rf(int hz) { @@ -189,7 +186,6 @@ bool tx_init(MagSetting* setting) { tx_init_rfid(); break; case MagTxStateGPIO: - furi_hal_power_enable_otg(); // gpio_item_configure_all_pins(GpioModeOutputPushPull); furi_hal_gpio_init(GPIO_PIN_A, GpioModeOutputPushPull, GpioPullNo, GpioSpeedLow); furi_hal_gpio_init(GPIO_PIN_B, GpioModeOutputPushPull, GpioPullNo, GpioSpeedLow); @@ -234,9 +230,12 @@ bool tx_deinit(MagSetting* setting) { furi_hal_gpio_write(GPIO_PIN_B, 0); furi_hal_gpio_write(GPIO_PIN_ENABLE, 0); - // set back to analog output mode? + // set back to analog output mode? - YES + furi_hal_gpio_init(GPIO_PIN_A, GpioModeAnalog, GpioPullNo, GpioSpeedLow); + furi_hal_gpio_init(GPIO_PIN_B, GpioModeAnalog, GpioPullNo, GpioSpeedLow); + furi_hal_gpio_init(GPIO_PIN_ENABLE, GpioModeAnalog, GpioPullNo, GpioSpeedLow); + //gpio_item_configure_all_pins(GpioModeAnalog); - furi_hal_power_disable_otg(); break; case MagTxStatePiezo: tx_deinit_piezo(); diff --git a/applications/external/magspoof/scenes/mag_scene_read.c b/applications/external/magspoof/scenes/mag_scene_read.c index 48a223c0f..9b4246d38 100644 --- a/applications/external/magspoof/scenes/mag_scene_read.c +++ b/applications/external/magspoof/scenes/mag_scene_read.c @@ -182,4 +182,4 @@ void mag_scene_read_on_exit(void* context) { // furi_hal_console_enable(); notification_message(mag->notifications, &sequence_blink_stop); -} \ No newline at end of file +} diff --git a/applications/external/magspoof/scenes/mag_scene_saved_menu.c b/applications/external/magspoof/scenes/mag_scene_saved_menu.c index f9235cd54..f2b66de41 100644 --- a/applications/external/magspoof/scenes/mag_scene_saved_menu.c +++ b/applications/external/magspoof/scenes/mag_scene_saved_menu.c @@ -17,8 +17,6 @@ void mag_scene_saved_menu_on_enter(void* context) { Mag* mag = context; Submenu* submenu = mag->submenu; - notification_message(mag->notifications, &sequence_blink_cyan_10); - // messy code to quickly check which tracks are available for emulation/display // there's likely a better spot to do this, but the MagDevice functions don't have access to the full mag struct... bool is_empty_t1 = furi_string_empty(mag->mag_dev->dev_data.track[0].str); diff --git a/applications/external/magspoof/scenes/mag_scene_start.c b/applications/external/magspoof/scenes/mag_scene_start.c index b048daaba..538234189 100644 --- a/applications/external/magspoof/scenes/mag_scene_start.c +++ b/applications/external/magspoof/scenes/mag_scene_start.c @@ -68,4 +68,4 @@ void mag_scene_start_on_exit(void* context) { Mag* mag = context; submenu_reset(mag->submenu); -} +} \ No newline at end of file