mirror of
https://github.com/eclipse/upm.git
synced 2025-03-24 01:10:22 +03:00
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:
parent
a41f59984f
commit
61175740f6
@ -48,7 +48,7 @@ void start_sampler (pulsensor_context * ctx) {
|
|||||||
int error;
|
int error;
|
||||||
ctx_counter++;
|
ctx_counter++;
|
||||||
usleep (100000);
|
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) {
|
if (error != 0) {
|
||||||
printf ("ERROR : Cannot created sampler thread.\n");
|
printf ("ERROR : Cannot created sampler thread.\n");
|
||||||
}
|
}
|
||||||
@ -144,4 +144,5 @@ void * do_sample (void * arg) {
|
|||||||
|
|
||||||
usleep (2000);
|
usleep (2000);
|
||||||
}
|
}
|
||||||
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user