mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 00:33:33 +08:00
led: Fixed code style
This commit is contained in:
@@ -125,6 +125,7 @@ LED::ioctl(device::file_t *filp, int cmd, unsigned long arg)
|
|||||||
result = VDev::ioctl(filp, cmd, arg);
|
result = VDev::ioctl(filp, cmd, arg);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -138,7 +139,9 @@ drv_led_start(void)
|
|||||||
{
|
{
|
||||||
if (gLED == nullptr) {
|
if (gLED == nullptr) {
|
||||||
gLED = new LED;
|
gLED = new LED;
|
||||||
if (gLED != nullptr)
|
|
||||||
|
if (gLED != nullptr) {
|
||||||
gLED->init();
|
gLED->init();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user