Changeset 22550


Ignore:
Timestamp:
07/27/13 10:57:33 (10 years ago)
Author:
nit
Message:

fix

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/scconfig.h

    r22548 r22550  
    1616
    1717start:
     18        i = 0;
    1819        dvbnode = dvbdev;
    1920        tmp = NULL;
     
    3435                               
    3536                                uint32_t status = 0;
     37                                dvbnode->fd = scopendirect(dvbnode->dev);
    3638                                scgetiscardpresent(dvbnode, &status);
     39                                scclose(dvbnode, -1);
    3740                               
    3841                                if(status == 1)
     
    6366                {
    6467                        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                        }
    6977                        drawscreen(scconfig, 0, 0);
    7078                }
  • titan/titan/scdev.h

    r22536 r22550  
    374374{
    375375        debug(1000, "in");
    376         int i, y, fd = -1, count = 0;
     376        int y, fd = -1, count = 0;
    377377        char *buf = NULL, *scdev = NULL;
    378378
     
    391391        }
    392392
    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)
    396398                {
    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);
    405402                }
    406403        }
Note: See TracChangeset for help on using the changeset viewer.