# HG changeset patch # User Michiel Broek # Date 1442321435 -7200 # Node ID 220f2f30bf685a0f701fa12d638ea5cca615c17e # Parent 034746506c3d62ab566a510855a4761b66181e9e Fixed initialisation of new GPIO RS433 and DHT11 devices. diff -r 034746506c3d -r 220f2f30bf68 thermferm/devices.c --- a/thermferm/devices.c Tue Sep 15 14:44:21 2015 +0200 +++ b/thermferm/devices.c Tue Sep 15 14:50:35 2015 +0200 @@ -563,7 +563,15 @@ ndev->subdevice = i; ndev->gpiopin = pin; ndev->timestamp = time(NULL); - if (i == PANEL_LED) { + if (i == 0) { + ndev->direction = DEVDIR_INTERN; + ndev->inuse = 1; + ndev->comment = xstrcpy((char *)"RS433 Mhz transmitter"); + } else if (i == 3) { + ndev->direction = DEVDIR_INTERN; + ndev->inuse = 1; + ndev->comment = xstrcpy((char *)"DHT11 room sensor"); + } else if (i == PANEL_LED) { ndev->direction = DEVDIR_OUT_BIN; ndev->inuse = 1; ndev->comment = xstrcpy((char *)"Frontpanel LED");