564 ndev->gpiopin = pin; |
564 ndev->gpiopin = pin; |
565 ndev->timestamp = time(NULL); |
565 ndev->timestamp = time(NULL); |
566 if (i == 0) { |
566 if (i == 0) { |
567 ndev->direction = DEVDIR_INTERN; |
567 ndev->direction = DEVDIR_INTERN; |
568 ndev->inuse = 1; |
568 ndev->inuse = 1; |
569 ndev->comment = xstrcpy((char *)"RS433 Mhz transmitter"); |
569 ndev->comment = xstrcpy((char *)"433 Mhz transmitter"); |
570 } else if (i == 3) { |
570 } else if (i == 3) { |
571 ndev->direction = DEVDIR_INTERN; |
571 ndev->direction = DEVDIR_INTERN; |
572 ndev->inuse = 1; |
572 ndev->inuse = 1; |
573 ndev->comment = xstrcpy((char *)"DHT11 room sensor"); |
573 ndev->comment = xstrcpy((char *)"DHT11 room sensor"); |
574 } else if (i == PANEL_LED) { |
574 } else if (i == PANEL_LED) { |