From 32468a40cb450a3c4f8b03df62cc818567b3fe50 Mon Sep 17 00:00:00 2001 From: Thad House Date: Sat, 13 Nov 2021 08:55:21 -0800 Subject: [PATCH] [hal] Remove use of getDmaDescriptor from autospi (#3717) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s not necessary, as the index equals the channel. --- hal/src/main/native/athena/SPI.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/hal/src/main/native/athena/SPI.cpp b/hal/src/main/native/athena/SPI.cpp index 1121fd88dd..0df6fdb824 100644 --- a/hal/src/main/native/athena/SPI.cpp +++ b/hal/src/main/native/athena/SPI.cpp @@ -496,9 +496,8 @@ void HAL_InitSPIAuto(HAL_SPIPort port, int32_t bufferSize, int32_t* status) { } // configure DMA - tDMAChannelDescriptor desc; - spiSystem->getSystemInterface()->getDmaDescriptor(g_SpiAutoData_index, &desc); - spiAutoDMA = std::make_unique(desc.channel, bufferSize, status); + spiAutoDMA = + std::make_unique(g_SpiAutoData_index, bufferSize, status); } void HAL_FreeSPIAuto(HAL_SPIPort port, int32_t* status) {