Skip to content

Commit

Permalink
Merge pull request #1033 from Daft-Freak/patch-1
Browse files Browse the repository at this point in the history
hub75: don't enable an unrelated IRQ
  • Loading branch information
Gadgetoid authored Dec 4, 2024
2 parents 1991fdd + e70c40b commit 17d180d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/hub75/hub75.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@ void Hub75::start(irq_handler_t handler) {

dma_channel_set_irq0_enabled(dma_channel, true);

irq_set_enabled(pio_get_dreq(pio, sm_data, true), true);
irq_set_enabled(DMA_IRQ_0, true);

row = 0;
Expand All @@ -161,7 +160,6 @@ void Hub75::start(irq_handler_t handler) {
void Hub75::stop(irq_handler_t handler) {

irq_set_enabled(DMA_IRQ_0, false);
irq_set_enabled(pio_get_dreq(pio, sm_data, true), false);

if(dma_channel != -1 && dma_channel_is_claimed(dma_channel)) {
dma_channel_set_irq0_enabled(dma_channel, false);
Expand Down Expand Up @@ -275,4 +273,4 @@ void Hub75::update(PicoGraphics *graphics) {
}
}
}
}
}

0 comments on commit 17d180d

Please sign in to comment.