Changeset 39704 for titan/titan


Ignore:
Timestamp:
01/08/17 19:34:00 (7 years ago)
Author:
gost
Message:

fix arm... cec

Location:
titan/titan
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/cec.h

    r39281 r39704  
    22#define CEC_H
    33
     4int cecon = 0;
    45
    56void hdmiEvent()
     
    370371        ioctl(status.hdmiFd, 0); /* flush old messages */
    371372#endif
    372 
     373       
    373374        setFixedPhysicalAddress(getconfigint("cec_fixedAddress", NULL));
     375        if(checkbox("DM900") == 1 && getwaswakuptimer() != 1)
     376        {       
     377                sleep(2);
     378                cecwakeup();
     379        }
    374380       
    375381        return;
     
    415421        data[0] = '\0';
    416422       
    417         if(getconfigint("cec_on", NULL) == 1)
     423        if(getconfigint("cec_on", NULL) == 1 && cecon == 0)
    418424        {
    419425                if(getconfigint("cec_all_on", NULL) == 1)
     
    445451                        sleep(1);
    446452                }
     453                cecon = 1;
    447454        }
    448455}
  • titan/titan/titan.c

    r39481 r39704  
    612612
    613613#ifdef MIPSEL
    614         cecinit();
     614        addtimer(&cecinit, START, 10000, 1, NULL, NULL, NULL);
     615        //cecinit();
    615616#endif 
    616617        system(getconfig("skriptbeforetv", NULL));
Note: See TracChangeset for help on using the changeset viewer.