Rewrite statusled implementation.

- Read it now from app.config JSON file.
- Allow for inverted status leds (Sonoff et al)
- Clean up unit tests.
This commit is contained in:
Pim van Pelt
2018-01-24 13:33:13 +01:00
parent f0fa04dc26
commit 118eb14447
11 changed files with 56 additions and 43 deletions

View File

@ -9,7 +9,7 @@ default: $(TARGET)
all: default
OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c))
SRCS = frozen/frozen.c ../src/channel.c ../src/mqtt.c ../src/led.c
SRCS = frozen/frozen.c ../src/channel.c ../src/mqtt.c ../src/statusled.c
HEADERS = $(wildcard *.h)
%.o: %.c $(HEADERS)