Small fixes to iot code

This commit is contained in:
Reimar 2025-04-04 11:22:45 +02:00
parent 48c621f1de
commit 4bf539963a
Signed by: Reimar
GPG Key ID: 93549FA07F0AE268
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -24,6 +24,8 @@ void *sound_alarm(void *arg)
usleep(delay * 2 * length);
}
destroy_buzzer(buzzer);
return NULL;
}