#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)
{
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