mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-26 05:54:46 -07:00
digital_signal: keep lock until all DMA transfers have finished
This commit is contained in:
@@ -490,7 +490,6 @@ bool digital_sequence_send(DigitalSequence* sequence) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
FURI_CRITICAL_EXIT();
|
||||
|
||||
/* wait until last dma transaction was finished */
|
||||
while(LL_DMA_GetDataLength(DMA1, LL_DMA_CHANNEL_2)) {
|
||||
@@ -498,6 +497,7 @@ bool digital_sequence_send(DigitalSequence* sequence) {
|
||||
|
||||
digital_signal_stop_timer();
|
||||
digital_signal_stop_dma();
|
||||
FURI_CRITICAL_EXIT();
|
||||
|
||||
/* undo previously prolonged edges */
|
||||
for(uint32_t pos = 0; pos < sequence->signals_size; pos++) {
|
||||
|
||||
Reference in New Issue
Block a user