[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:
Matteo Cypriani 2010-10-26 17:25:00 +02:00
parent 2bfb322728
commit 0a8ef2793b
1 changed files with 7 additions and 4 deletions

View File

@ -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) ;