From 70c1c0229f49449737daa231bb7da35c4e01bd3b Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Wed, 19 Nov 2025 20:19:22 +0100 Subject: [PATCH] change rename global heartbeat var --- src/kds_s2000w_heartbeat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kds_s2000w_heartbeat.c b/src/kds_s2000w_heartbeat.c index de3b1be..dcb92f8 100644 --- a/src/kds_s2000w_heartbeat.c +++ b/src/kds_s2000w_heartbeat.c @@ -2,7 +2,7 @@ #include #include "kds_s2000w_heartbeat.h" -pthread_t pwait; +pthread_t kds_s2000w_heartbeat_thread; void* _kds_s2000w_heartbeat_wait_thread(void *args) { @@ -13,10 +13,10 @@ void* _kds_s2000w_heartbeat_wait_thread(void *args) void kds_s2000w_heartbeat_join_thread() { - pthread_join(pwait, NULL); + pthread_join(kds_s2000w_heartbeat_thread, NULL); } void kds_s2000w_heartbeat_wait_seconds(uint8_t* seconds) { - pthread_create(&pwait, NULL, _kds_s2000w_heartbeat_wait_thread, seconds); + pthread_create(&kds_s2000w_heartbeat_thread, NULL, _kds_s2000w_heartbeat_wait_thread, seconds); } \ No newline at end of file -- 2.47.3