AP_HAL: RCInput: rename deinit() to teardown()

This commit is contained in:
Lucas De Marchi 2016-10-26 18:41:47 -02:00
parent 89599f7bea
commit 312a27dd20
4 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ public:
* in the C++ type system.)
*/
virtual void init() = 0;
virtual void deinit() {};
virtual void teardown() {};
/**
* Return true if there has been new input since the last read()

View File

@ -421,7 +421,7 @@ RCInput_RPI::~RCInput_RPI()
delete con_blocks;
}
void RCInput_RPI::deinit()
void RCInput_RPI::teardown()
{
stop_dma();
}

View File

@ -127,7 +127,7 @@ private:
static void termination_handler(int signum);
void set_sigaction();
void set_physical_addresses(int version);
void deinit() override;
void teardown() override;
};
}

View File

@ -30,7 +30,7 @@ void panic(const char *errormsg, ...)
va_end(ap);
UNUSED_RESULT(write(1, "\n", 1));
hal.rcin->deinit();
hal.rcin->teardown();
hal.scheduler->delay_microseconds(10000);
exit(1);
}