mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-20 15:48:29 -04:00
AP_HAL_Linux: added deinit logic for RCInput_Navio
DMA needs to be stopped if a panic occurs.
This commit is contained in:
parent
f4d14f73ba
commit
8528a7d159
@ -411,6 +411,11 @@ LinuxRCInput_Navio::~LinuxRCInput_Navio()
|
|||||||
delete con_blocks;
|
delete con_blocks;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void LinuxRCInput_Navio::deinit()
|
||||||
|
{
|
||||||
|
stop_dma_and_exit(0);
|
||||||
|
}
|
||||||
|
|
||||||
//Initializing necessary registers
|
//Initializing necessary registers
|
||||||
void LinuxRCInput_Navio::init_registers()
|
void LinuxRCInput_Navio::init_registers()
|
||||||
{
|
{
|
||||||
|
@ -126,6 +126,7 @@ private:
|
|||||||
static void stop_dma_and_exit(int param);
|
static void stop_dma_and_exit(int param);
|
||||||
void set_sigaction();
|
void set_sigaction();
|
||||||
void set_physical_addresses(int version);
|
void set_physical_addresses(int version);
|
||||||
|
void deinit() override;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user