thermferm/devices.c

changeset 394
14231379bec2
parent 393
220f2f30bf68
child 395
e32e83550963
equal deleted inserted replaced
393:220f2f30bf68 394:14231379bec2
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) {

mercurial