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