Changeset 22550
- Timestamp:
- 07/27/13 10:57:33 (10 years ago)
- Location:
- titan/titan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/scconfig.h
r22548 r22550 16 16 17 17 start: 18 i = 0; 18 19 dvbnode = dvbdev; 19 20 tmp = NULL; … … 34 35 35 36 uint32_t status = 0; 37 dvbnode->fd = scopendirect(dvbnode->dev); 36 38 scgetiscardpresent(dvbnode, &status); 39 scclose(dvbnode, -1); 37 40 38 41 if(status == 1) … … 63 66 { 64 67 clearscreen(scconfig); 65 scsetreset(((struct dvbdev*)listbox->select->handle)); 66 drawscreen(load, 0, 0); 67 sleep(1); 68 clearscreen(load); 68 struct dvbdev *dvbtmp = ((struct dvbdev*)listbox->select->handle); 69 if(dvbtmp != NULL) 70 { 71 drawscreen(load, 0, 0); 72 dvbtmp->fd = scopendirect(dvbtmp->dev); 73 scsetreset(dvbtmp); 74 scclose(dvbtmp, -1); 75 clearscreen(load); 76 } 69 77 drawscreen(scconfig, 0, 0); 70 78 } -
titan/titan/scdev.h
r22536 r22550 374 374 { 375 375 debug(1000, "in"); 376 int i,y, fd = -1, count = 0;376 int y, fd = -1, count = 0; 377 377 char *buf = NULL, *scdev = NULL; 378 378 … … 391 391 } 392 392 393 for(i = 0; i < MAXDVBADAPTER; i++) 394 { 395 for(y = 0; y < MAXSCDEV; y++) 393 for(y = 0; y < MAXSCDEV; y++) 394 { 395 sprintf(buf, scdev, y); 396 fd = scopendirect(buf); 397 if(fd >= 0) 396 398 { 397 sprintf(buf, scdev, i, y); 398 fd = scopendirect(buf); 399 if(fd >= 0) 400 { 401 scclose(NULL, fd); 402 count++; 403 adddvbdev(buf, i, y, -1, SCDEV, NULL, NULL, 0); 404 } 399 scclose(NULL, fd); 400 count++; 401 adddvbdev(buf, 0, y, -1, SCDEV, NULL, NULL, 0); 405 402 } 406 403 }
Note: See TracChangeset
for help on using the changeset viewer.