Browse Source

Ran Astyle

sbg
David Sidrane 9 years ago committed by Lorenz Meier
parent
commit
30bc968ed6
  1. 4
      src/drivers/ll40ls/ll40ls.cpp
  2. 2
      src/modules/gpio_led/gpio_led.c

4
src/drivers/ll40ls/ll40ls.cpp

@ -232,11 +232,14 @@ void start(const bool use_i2c, const int bus) @@ -232,11 +232,14 @@ void start(const bool use_i2c, const int bus)
fail:
#ifdef PX4_I2C_BUS_ONBOARD
if (g_dev_int != nullptr && (bus == -1 || bus == PX4_I2C_BUS_ONBOARD)) {
delete g_dev_int;
g_dev_int = nullptr;
}
#endif
if (g_dev_ext != nullptr && (bus == -1 || bus == PX4_I2C_BUS_EXPANSION)) {
delete g_dev_ext;
g_dev_ext = nullptr;
@ -261,6 +264,7 @@ void stop(const bool use_i2c, const int bus) @@ -261,6 +264,7 @@ void stop(const bool use_i2c, const int bus)
delete g_dev_ext;
g_dev_ext = nullptr;
}
} else {
if (g_dev_int != nullptr) {
delete g_dev_int;

2
src/modules/gpio_led/gpio_led.c

@ -208,12 +208,14 @@ void gpio_led_start(FAR void *arg) @@ -208,12 +208,14 @@ void gpio_led_start(FAR void *arg)
char *gpio_dev;
#if defined(PX4IO_DEVICE_PATH)
if (priv->use_io) {
gpio_dev = PX4IO_DEVICE_PATH;
} else {
gpio_dev = PX4FMU_DEVICE_PATH;
}
#else
gpio_dev = PX4FMU_DEVICE_PATH;
#endif

Loading…
Cancel
Save