thermferm/devices.c

changeset 713
ea24b4ce02b1
parent 711
844588d0df65
child 714
24749c296a50
--- a/thermferm/devices.c	Sun Apr 28 14:25:26 2024 +0200
+++ b/thermferm/devices.c	Sun Apr 28 15:50:42 2024 +0200
@@ -696,7 +696,7 @@
     /*
      * Create simulated devices, or upgrade with new devices.
      */
-    subdevices = 9;
+    subdevices = 10;
     for (i = found; i < subdevices; i++) {
 	ndev = (devices_list *)malloc(sizeof(devices_list));
 	ndev->next = NULL;
@@ -748,6 +748,10 @@
 			ndev->address = xstrcpy((char *)"SimLight");
 			ndev->description = xstrcpy((char *)"Simulated light");
 			break;
+	    case 9:	ndev->direction = DEVDIR_IN_ANALOG;
+			ndev->address = xstrcpy((char *)"SimBeerTemp2");
+			ndev->description = xstrcpy((char *)"Simulated beer temperature (alt)");
+			break;
 	}
 
 	syslog(LOG_NOTICE, "New Simulator device %s, subdevice %d, %s", ndev->address, ndev->subdevice, ndev->description);

mercurial