Small fixes to iot code
This commit is contained in:
parent
48c621f1de
commit
4bf539963a
@ -3,5 +3,5 @@ FILES=main.c brokers/mqtt.c brokers/amqp.c devices/temperature.c devices/display
|
||||
# libgpiod version must be < 2.0
|
||||
|
||||
all: $(FILES)
|
||||
$(CC) -lmosquitto -lrabbitmq -lpthread -li2c -lgpiod $(FILES)
|
||||
$(CC) -lmosquitto -lrabbitmq -pthread -li2c -lgpiod $(FILES)
|
||||
|
||||
|
@ -24,6 +24,8 @@ void *sound_alarm(void *arg)
|
||||
usleep(delay * 2 * length);
|
||||
}
|
||||
|
||||
destroy_buzzer(buzzer);
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user