]> gitweb.hhaalo.de Git - sane-kds-s2000w-net.git/commitdiff
change rename global heartbeat var
authorBastian Dehn <hhaalo@arcor.de>
Wed, 19 Nov 2025 19:19:22 +0000 (20:19 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Wed, 19 Nov 2025 19:19:22 +0000 (20:19 +0100)
src/kds_s2000w_heartbeat.c

index de3b1beef40fa08317da85625ac27e8847796fba..dcb92f801eeff45dad14057ef5baadc343785d19 100644 (file)
@@ -2,7 +2,7 @@
 #include <pthread.h>
 #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