thermferm/devices.c

changeset 344
acd840c9fcc0
parent 343
ba3a2d27d59e
child 347
0ab5c3fd7c77
equal deleted inserted replaced
343:ba3a2d27d59e 344:acd840c9fcc0
300 } else if (strcmp(buf, (char *)"28") == 0) { 300 } else if (strcmp(buf, (char *)"28") == 0) {
301 ndev->direction = DEVDIR_IN_ANALOG; 301 ndev->direction = DEVDIR_IN_ANALOG;
302 ndev->description = xstrcpy((char *)"DS18B20 Digital thermometer"); 302 ndev->description = xstrcpy((char *)"DS18B20 Digital thermometer");
303 } else if (strcmp(buf, (char *)"29") == 0) { 303 } else if (strcmp(buf, (char *)"29") == 0) {
304 ndev->description = xstrcpy((char *)"DS2408 8 Channel addressable switch/LCD"); 304 ndev->description = xstrcpy((char *)"DS2408 8 Channel addressable switch/LCD");
305 ndev->direction = DEVDIR_IN_BIN;
305 } else if (strcmp(buf, (char *)"3a") == 0) { 306 } else if (strcmp(buf, (char *)"3a") == 0) {
306 ndev->description = xstrcpy((char *)"DS2413 Dual channel addressable switch"); 307 ndev->description = xstrcpy((char *)"DS2413 Dual channel addressable switch");
308 ndev->direction = DEVDIR_IN_BIN;
307 } else if (strcmp(buf, (char *)"3b") == 0) { 309 } else if (strcmp(buf, (char *)"3b") == 0) {
308 ndev->direction = DEVDIR_IN_ANALOG; 310 ndev->direction = DEVDIR_IN_ANALOG;
309 ndev->description = xstrcpy((char *)"DS1825 Digital thermometer"); 311 ndev->description = xstrcpy((char *)"DS1825 Digital thermometer");
310 } else if (strcmp(buf, (char *)"42") == 0) { 312 } else if (strcmp(buf, (char *)"42") == 0) {
311 ndev->direction = DEVDIR_IN_ANALOG; 313 ndev->direction = DEVDIR_IN_ANALOG;

mercurial