[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 */
|
||||
pthread_create(&monitor_thread, NULL,
|
||||
(void *) &monitor_couples, NULL) ;
|
||||
pthread_create(&autocalibration_hello_thread, NULL,
|
||||
(void *) &listen_for_aps, NULL) ;
|
||||
pthread_create(&monitor_aps_thread, NULL,
|
||||
(void *) &monitor_aps, NULL) ;
|
||||
if (cfg_getbool(cfg, "autocalibration"))
|
||||
{
|
||||
pthread_create(&autocalibration_hello_thread, NULL,
|
||||
(void *) &listen_for_aps, NULL) ;
|
||||
pthread_create(&monitor_aps_thread, NULL,
|
||||
(void *) &monitor_aps, NULL) ;
|
||||
}
|
||||
|
||||
run = TRUE ;
|
||||
ret = read_loop(sockfd) ;
|
||||
|
|
Loading…
Reference in New Issue