Skip to content

Commit

Permalink
Fix DMA SPI memory increment define (flipperdevices#3075)
Browse files Browse the repository at this point in the history
  • Loading branch information
drunkbatya authored Sep 14, 2023
1 parent f0f2a6c commit ac892f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/targets/f7/furi_hal/furi_hal_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ bool furi_hal_spi_bus_trx_dma(
if(tx_buffer == NULL) {
// RX mode, use dummy data instead of TX buffer
tx_buffer = (uint8_t*)&dma_dummy_u32;
tx_mem_increase_mode = LL_DMA_PERIPH_NOINCREMENT;
tx_mem_increase_mode = LL_DMA_MEMORY_NOINCREMENT;
} else {
tx_mem_increase_mode = LL_DMA_MEMORY_INCREMENT;
}
Expand Down Expand Up @@ -373,4 +373,4 @@ bool furi_hal_spi_bus_trx_dma(
furi_check(furi_semaphore_release(spi_dma_lock) == FuriStatusOk);

return ret;
}
}

0 comments on commit ac892f3

Please sign in to comment.