From 4bf539963a25d7a1673a2b2c5d267a5244434288 Mon Sep 17 00:00:00 2001 From: Reimar Date: Fri, 4 Apr 2025 11:22:45 +0200 Subject: [PATCH] Small fixes to iot code --- iot/Makefile | 2 +- iot/main.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/iot/Makefile b/iot/Makefile index 6239426..5d11467 100644 --- a/iot/Makefile +++ b/iot/Makefile @@ -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) diff --git a/iot/main.c b/iot/main.c index 181fa72..d9319c7 100644 --- a/iot/main.c +++ b/iot/main.c @@ -24,6 +24,8 @@ void *sound_alarm(void *arg) usleep(delay * 2 * length); } + destroy_buzzer(buzzer); + return NULL; }