From e4a3124876c19ada97332f4a242458878b595f05 Mon Sep 17 00:00:00 2001 From: Pol Henarejos Date: Tue, 5 Nov 2024 00:28:46 +0100 Subject: [PATCH] Fix PHY for led neopixel. Signed-off-by: Pol Henarejos --- src/led/led_neopixel.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/led/led_neopixel.c b/src/led/led_neopixel.c index 8a6d7c0..2d8ef18 100644 --- a/src/led/led_neopixel.c +++ b/src/led/led_neopixel.c @@ -37,10 +37,8 @@ tNeopixel pixel[] = { void led_driver_init() { uint8_t gpio = GPIO_NUM_48; - if (file_has_data(ef_phy)) { - if (file_read_uint8_offset(ef_phy, PHY_OPTS) & PHY_OPT_GPIO) { - gpio = file_get_data(ef_phy)[PHY_LED_GPIO]; - } + if (phy_data.led_gpio_present) { + gpio = phy_data.led_gpio; } neopixel = neopixel_Init(1, gpio); }