Skip to content

Commit

Permalink
trade: Call furi_hal_gpio_remove_int_callback on CLK
Browse files Browse the repository at this point in the history
This was starting up with nfc_isr already being claimed
  • Loading branch information
kbembedded committed Jun 11, 2023
1 parent 00e7701 commit dc12f70
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion views/trade.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ void trade_enter_callback(void* context) {
GpioModeInterruptRise,
GpioPullNo,
GpioSpeedVeryHigh); // <-- This line causes the "OK" to stop functioning when exiting the application, so a reboot of the Flipper Zero is required.
furi_hal_gpio_remove_int_callback(&GAME_BOY_CLK);
furi_hal_gpio_add_int_callback(&GAME_BOY_CLK, input_clk_gameboy, trade);

// furi_hal_gpio_disable_int_callback(&GAME_BOY_CLK);
Expand Down Expand Up @@ -384,4 +385,4 @@ void trade_free(App* app) {
View* trade_get_view(App* app) {
furi_assert(app);
return app->trade->view;
}
}

0 comments on commit dc12f70

Please sign in to comment.