14 * WITHOUT ANY WARRANTY; without even the implied warranty of |
14 * WITHOUT ANY WARRANTY; without even the implied warranty of |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
16 * General Public License for more details. |
16 * General Public License for more details. |
17 * |
17 * |
18 * You should have received a copy of the GNU General Public License |
18 * You should have received a copy of the GNU General Public License |
19 * along with EC-65K; see the file COPYING. If not, write to the Free |
19 * along with ThermFerm; see the file COPYING. If not, write to the Free |
20 * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
20 * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
21 *****************************************************************************/ |
21 *****************************************************************************/ |
22 |
22 |
23 #include "lock.h" |
23 #include "lock.h" |
24 #include "logger.h" |
24 #include "logger.h" |
266 } |
263 } |
267 |
264 |
268 rc = devices_detect(); |
265 rc = devices_detect(); |
269 if (rc) { |
266 if (rc) { |
270 syslog(LOG_NOTICE, "Detected %d new devices", rc); |
267 syslog(LOG_NOTICE, "Detected %d new devices", rc); |
271 if (debug) |
|
272 fprintf(stdout, "Detected %d new devices\n", rc); |
|
273 wrconfig(); |
268 wrconfig(); |
274 } |
269 } |
275 |
270 |
276 #ifdef HAVE_WIRINGPI_H |
271 #ifdef HAVE_WIRINGPI_H |
277 rc = piThreadCreate(my_devices_loop); |
272 rc = piThreadCreate(my_devices_loop); |