1992 device_out(unit->fan_address, unit->fan_state); |
1992 device_out(unit->fan_address, unit->fan_state); |
1993 device_out(unit->light_address, unit->light_state); |
1993 device_out(unit->light_address, unit->light_state); |
1994 syslog(LOG_NOTICE, "Unit `%s' stopped in mode %s", unit->name, UNITMODE[unit->mode]); |
1994 syslog(LOG_NOTICE, "Unit `%s' stopped in mode %s", unit->name, UNITMODE[unit->mode]); |
1995 } |
1995 } |
1996 |
1996 |
|
1997 usleep(100000); |
1997 mqtt_disconnect(); |
1998 mqtt_disconnect(); |
1998 |
1999 |
1999 syslog(LOG_NOTICE, "Out of loop"); |
2000 syslog(LOG_NOTICE, "Out of loop"); |
2000 if (debug) |
2001 if (debug) |
2001 fprintf(stdout, (char *)"Out of loop\n"); |
2002 fprintf(stdout, (char *)"Out of loop\n"); |