Przeglądaj źródła

Added workflow build badge to readme - release

Sébastien 4 lat temu
rodzic
commit
ede495a145
2 zmienionych plików z 6 dodań i 5 usunięć
  1. 1 0
      README.md
  2. 5 5
      components/services/accessors.c

+ 1 - 0
README.md

@@ -1,3 +1,4 @@
+![Cross-Build](https://github.com/sle118/squeezelite-esp32/workflows/Cross-Build/badge.svg?branch=master-cmake)
 # Squeezelite-esp32
 ## What is this
 Squeezelite-esp32 is an audio software suite made to run on espressif's ESP32 wifi (b/g/n) and bluetooth chipset. It offers the following capabilities

+ 5 - 5
components/services/accessors.c

@@ -450,16 +450,16 @@ const set_GPIO_struct_t * get_gpio_struct(){
 	}
 
 #ifdef CONFIG_LED_LOCKED
-		gpio_struct.red.locked=true;
-		gpio_struct.green.locked=true;
+		gpio_struct.red.fixed=true;
+		gpio_struct.green.fixed=true;
 #endif	
-#ifdef CONFIG_JACK_LOCKED
-		gpio_struct.jack.gpio=CONFIG_JACK_GPIO
+#ifdef CONFIG_JACK_LOCKED 
+		gpio_struct.jack.gpio=CONFIG_JACK_GPIO;
 		gpio_struct.jack.fixed=true;
 		gpio_struct.jack.level=CONFIG_JACK_GPIO_LEVEL;
 #endif
 #ifdef CONFIG_SPKFAULT_LOCKED
-		gpio_struct.spkfault.gpio=CONFIG_SPKFAULT_GPIO
+		gpio_struct.spkfault.gpio=CONFIG_SPKFAULT_GPIO;
 		gpio_struct.spkfault.fixed=true;
 		gpio_struct.spkfault.level=CONFIG_SPKFAULT_GPIO_LEVEL;
 #endif