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