thermferm/devices.c

changeset 163
3d813570a5e3
parent 162
6fc9e3f7962f
child 164
f16def8472ba
--- a/thermferm/devices.c	Thu Jul 31 21:04:06 2014 +0200
+++ b/thermferm/devices.c	Thu Jul 31 22:15:22 2014 +0200
@@ -150,8 +150,7 @@
 	    	ndev->type = DEVTYPE_GPIO;
 	    	ndev->value = digitalRead(pin);
 	    	ndev->present = DEVPRESENT_YES;
-	    	snprintf(buf, 39, "GPIO%d", i);
-	    	ndev->address = xstrcpy(buf);
+	    	ndev->address = xstrcpy((char *)"GPIO");
 	    	snprintf(buf, 39, "Raspberry GPIO %d", i);
 	    	ndev->description = xstrcpy(buf);
 	    	ndev->subdevice = i;

mercurial