[Aggregator] Check "autocalibration" option
Option "autocalibration" (-a) was implemented but not checked (autocalibration was always activated). This is now fixed.
This commit is contained in:
parent
2bfb322728
commit
0a8ef2793b
|
@ -50,10 +50,13 @@ int main(int argc, char **argv)
|
||||||
/* Set up threads */
|
/* Set up threads */
|
||||||
pthread_create(&monitor_thread, NULL,
|
pthread_create(&monitor_thread, NULL,
|
||||||
(void *) &monitor_couples, NULL) ;
|
(void *) &monitor_couples, NULL) ;
|
||||||
pthread_create(&autocalibration_hello_thread, NULL,
|
if (cfg_getbool(cfg, "autocalibration"))
|
||||||
(void *) &listen_for_aps, NULL) ;
|
{
|
||||||
pthread_create(&monitor_aps_thread, NULL,
|
pthread_create(&autocalibration_hello_thread, NULL,
|
||||||
(void *) &monitor_aps, NULL) ;
|
(void *) &listen_for_aps, NULL) ;
|
||||||
|
pthread_create(&monitor_aps_thread, NULL,
|
||||||
|
(void *) &monitor_aps, NULL) ;
|
||||||
|
}
|
||||||
|
|
||||||
run = TRUE ;
|
run = TRUE ;
|
||||||
ret = read_loop(sockfd) ;
|
ret = read_loop(sockfd) ;
|
||||||
|
|
Loading…
Reference in New Issue