mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 20:53:35 +08:00
Updated F330 script, enabled amber led
This commit is contained in:
@@ -193,8 +193,8 @@ __EXPORT int nsh_archinitialize(void)
|
||||
NULL);
|
||||
|
||||
/* initial LED state */
|
||||
//drv_led_start();
|
||||
up_ledoff(LED_AMBER);
|
||||
drv_led_start();
|
||||
led_off(LED_AMBER);
|
||||
|
||||
/* Configure SPI-based devices */
|
||||
|
||||
|
||||
@@ -68,7 +68,7 @@ __EXPORT void led_init()
|
||||
|
||||
__EXPORT void led_on(int led)
|
||||
{
|
||||
if (led == 0)
|
||||
if (led == 1)
|
||||
{
|
||||
/* Pull down to switch on */
|
||||
stm32_gpiowrite(GPIO_LED1, false);
|
||||
@@ -77,7 +77,7 @@ __EXPORT void led_on(int led)
|
||||
|
||||
__EXPORT void led_off(int led)
|
||||
{
|
||||
if (led == 0)
|
||||
if (led == 1)
|
||||
{
|
||||
/* Pull up to switch off */
|
||||
stm32_gpiowrite(GPIO_LED1, true);
|
||||
|
||||
Reference in New Issue
Block a user