AP_HAL_Linux: added deinit logic for RCInput_Navio

DMA needs to be stopped if a panic occurs.
This commit is contained in:
Staroselskii Georgii 2015-07-07 01:49:04 +03:00 committed by Andrew Tridgell
parent f4d14f73ba
commit 8528a7d159
2 changed files with 6 additions and 0 deletions

View File

@ -411,6 +411,11 @@ LinuxRCInput_Navio::~LinuxRCInput_Navio()
delete con_blocks;
}
void LinuxRCInput_Navio::deinit()
{
stop_dma_and_exit(0);
}
//Initializing necessary registers
void LinuxRCInput_Navio::init_registers()
{

View File

@ -126,6 +126,7 @@ private:
static void stop_dma_and_exit(int param);
void set_sigaction();
void set_physical_addresses(int version);
void deinit() override;
};