RaspberrPi project source code
guowenxue
8 hours ago 7be9084b27e3385f27f7ac5d0e946f4dcaa94d1e
project/lightd/lightd.c
@@ -36,7 +36,6 @@
static void program_usage(char *progname)
{
    printf("Usage: %s [OPTION]...\n", progname);
    printf(" %s is LingYun studio MQTT daemon program running on RaspberryPi\n", progname);
@@ -145,7 +144,6 @@
     * |   Auto Light Control Thread    |
     * +--------------------------------+
     */
    log_info("Auto light control thread start\n");
    while( ! g_signal.stop )
    {
@@ -180,8 +178,8 @@
            sleep(hwinfo->light_intval);
            turn_light("indoor", ON);
            turn_light("hallway", ON);
            turn_light("indoor", OFF);
            turn_light("hallway", OFF);
        }
        msleep(100);