mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-30 02:31:44 +00:00
[hal] Fix segfault in various HAL functions (#4891)
This commit is contained in:
@@ -710,6 +710,9 @@ void HAL_StopDMA(HAL_DMAHandle handle, int32_t* status) {
|
||||
|
||||
void* HAL_GetDMADirectPointer(HAL_DMAHandle handle) {
|
||||
auto dma = dmaHandles->Get(handle);
|
||||
if (dma == nullptr) {
|
||||
return nullptr;
|
||||
}
|
||||
return dma.get();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user