pulsensor: do_sample needs to return a value (NULL)

defect #346

Signed-off-by: Jon Trulson <jtrulson@ics.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Jon Trulson 2015-06-10 15:25:16 -06:00 committed by Mihai Tudor Panu
parent a41f59984f
commit 61175740f6

View File

@ -48,7 +48,7 @@ void start_sampler (pulsensor_context * ctx) {
int error;
ctx_counter++;
usleep (100000);
error = pthread_create (&(ctx->sample_thread), NULL, do_sample, (void *) ctx);
error = pthread_create (&(ctx->sample_thread), NULL, &do_sample, (void *) ctx);
if (error != 0) {
printf ("ERROR : Cannot created sampler thread.\n");
}
@ -144,4 +144,5 @@ void * do_sample (void * arg) {
usleep (2000);
}
return NULL;
}