From 6db0960200c5a1307914486172094fccf23b33ed Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Wed, 27 Mar 2019 15:38:23 +0800 Subject: [PATCH] Add 0.91 Inch OLED --- src/nbiotd/iotd.c | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/nbiotd/iotd.c b/src/nbiotd/iotd.c index 061618d..1656ae1 100644 --- a/src/nbiotd/iotd.c +++ b/src/nbiotd/iotd.c @@ -68,12 +68,12 @@ const char *progname=NULL; char pid_file[64] = { 0 }; /* The file used to record the PID */ - char *conf_file = "iotd.conf"; + char *conf_file = "etc/iotd.conf"; char *log_file = DEF_LOG_FILE; int log_level = DEF_LOG_LEVEL; iotd_ctx_t iotd_ctx; - pthread_t tid; +// pthread_t tid; iotd_conf_t *conf; logger_t *logger; @@ -139,6 +139,7 @@ printf("Logger initialize failure with file: %s\n", logger->file); return -1; } + log_nrml("Init default logger file \"%s\" ok\n", log_file); /* Parser configure file and start the initialize log */ rv = parser_iotd_conf(conf_file, conf); @@ -159,7 +160,6 @@ printf("Logger reopen failure with file: %s\n", logger->file); return -1; } - printf("Open logger ok\n"); } if( !debug ) @@ -174,7 +174,7 @@ cp_install_proc_signal(); /* start watchdog thread worker */ - thread_start(&tid, watchdog_worker, NULL); + //thread_start(&tid, watchdog_worker, NULL); /* Start MQTT thread worker */ if( conf->mqtt_conf.enable ) @@ -242,7 +242,7 @@ } close(wtd_fd); - printf("watchdog thread worker exit\n"); + log_warn("watchdog thread worker exit\n"); return NULL; } -- Gitblit v1.9.1