Skip to content

Commit

Permalink
MicroPython: Fix double init fail.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Jul 12, 2024
1 parent 39e9bc9 commit 2aab2f7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/hardware.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@ namespace picosystem {
dma_channel_set_irq0_enabled(dma_channel, true);
irq_set_enabled(pio_get_dreq(screen_pio, screen_sm, true), true);

irq_remove_handler(DMA_IRQ_0, dma_complete);
irq_add_shared_handler(DMA_IRQ_0, dma_complete, PICO_SHARED_IRQ_HANDLER_HIGHEST_ORDER_PRIORITY);
irq_set_enabled(DMA_IRQ_0, true);

Expand Down

0 comments on commit 2aab2f7

Please sign in to comment.