mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-09-21 10:26:02 +08:00
Fixed code format and removed unused std::list
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -766,6 +766,7 @@ ACCELSIM::start()
|
||||
//PX4_INFO("ACCELSIM::start");
|
||||
/* make sure we are stopped first */
|
||||
int ret = stop();
|
||||
|
||||
if (ret != 0) {
|
||||
PX4_ERR("ACCELSIM::start stop failed");
|
||||
}
|
||||
@@ -775,9 +776,11 @@ ACCELSIM::start()
|
||||
_mag_reports->flush();
|
||||
|
||||
int ret2 = VirtDevObj::start();
|
||||
|
||||
if (ret2 != 0) {
|
||||
PX4_ERR("ACCELSIM::start base class start failed");
|
||||
}
|
||||
|
||||
return (ret != 0 || ret2 != 0) ? -1 : 0;
|
||||
}
|
||||
|
||||
@@ -785,7 +788,6 @@ int
|
||||
ACCELSIM::stop()
|
||||
{
|
||||
//PX4_INFO("ACCELSIM::stop");
|
||||
//PX4_BACKTRACE();
|
||||
return VirtDevObj::stop();
|
||||
}
|
||||
|
||||
|
||||
@@ -48,8 +48,6 @@
|
||||
|
||||
#include <px4_posix.h>
|
||||
|
||||
#include <list>
|
||||
|
||||
int px4_sem_init(px4_sem_t *s, int pshared, unsigned value)
|
||||
{
|
||||
// We do not used the process shared arg
|
||||
|
||||
Reference in New Issue
Block a user