mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 09:22:18 +00:00
boards new split VENDOR_MODEL naming convention
This commit is contained in:
committed by
David Sidrane
parent
f692ad04d0
commit
abb3817d31
@@ -279,7 +279,6 @@ int led_init()
|
||||
led_control.timestamp = hrt_absolute_time();
|
||||
led_control_pub = orb_advertise_queue(ORB_ID(led_control), &led_control, LED_UORB_QUEUE_LENGTH);
|
||||
|
||||
#if !defined(CONFIG_ARCH_BOARD_RPI) && !defined(CONFIG_ARCH_BOARD_BBBLUE)
|
||||
/* first open normal LEDs */
|
||||
DevMgr::getHandle(LED0_DEVICE_PATH, h_leds);
|
||||
|
||||
@@ -305,7 +304,6 @@ int led_init()
|
||||
|
||||
/* switch amber off */
|
||||
led_off(LED_AMBER);
|
||||
#endif
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -313,9 +311,7 @@ int led_init()
|
||||
void led_deinit()
|
||||
{
|
||||
orb_unadvertise(led_control_pub);
|
||||
#if !defined(CONFIG_ARCH_BOARD_RPI) && !defined(CONFIG_ARCH_BOARD_BBBLUE)
|
||||
DevMgr::releaseHandle(h_leds);
|
||||
#endif
|
||||
}
|
||||
|
||||
int led_toggle(int led)
|
||||
|
||||
Reference in New Issue
Block a user