mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
drivers: Led: Do not initialize twice
This commit is contained in:
parent
d66d7a4932
commit
83a387a553
@ -139,9 +139,5 @@ drv_led_start(void)
|
||||
{
|
||||
if (gLED == nullptr) {
|
||||
gLED = new LED;
|
||||
|
||||
if (gLED != nullptr) {
|
||||
gLED->init();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user