Sfoglia il codice sorgente

trade: Call furi_hal_gpio_remove_int_callback on CLK

This was starting up with nfc_isr already being claimed
Kris Bahnsen 2 anni fa
parent
commit
dc12f7008f
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      views/trade.cpp

+ 2 - 1
views/trade.cpp

@@ -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);
@@ -384,4 +385,4 @@ void trade_free(App* app) {
 View* trade_get_view(App* app) {
     furi_assert(app);
     return app->trade->view;
-}
+}