745 ndev->description = xstrcpy((char *)"Simulated fan"); |
745 ndev->description = xstrcpy((char *)"Simulated fan"); |
746 break; |
746 break; |
747 case 8: ndev->direction = DEVDIR_OUT_BIN; |
747 case 8: ndev->direction = DEVDIR_OUT_BIN; |
748 ndev->address = xstrcpy((char *)"SimLight"); |
748 ndev->address = xstrcpy((char *)"SimLight"); |
749 ndev->description = xstrcpy((char *)"Simulated light"); |
749 ndev->description = xstrcpy((char *)"Simulated light"); |
|
750 break; |
|
751 case 9: ndev->direction = DEVDIR_IN_ANALOG; |
|
752 ndev->address = xstrcpy((char *)"SimBeerTemp2"); |
|
753 ndev->description = xstrcpy((char *)"Simulated beer temperature (alt)"); |
750 break; |
754 break; |
751 } |
755 } |
752 |
756 |
753 syslog(LOG_NOTICE, "New Simulator device %s, subdevice %d, %s", ndev->address, ndev->subdevice, ndev->description); |
757 syslog(LOG_NOTICE, "New Simulator device %s, subdevice %d, %s", ndev->address, ndev->subdevice, ndev->description); |
754 |
758 |