Ignore:
Timestamp:
11/14/07 11:51:13 (6 years ago)
Author:
mickey
Message:

neod: fix gps sysfs power node, call /etc/init.d/gsmd to start/stop gsm

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/target/OM-2007.2/daemons/neod/src/buttonactions.c

    r3419 r3421  
    626626        case GPS: 
    627627#ifdef NEOD_PLATFORM_FIC_NEO1973 
    628             return read_boolean_from_path( "/sys/devices/platform/s3c2410-i2c/i2c-adapter/i2c-0/0-0008/gta01-pm-gps.0/power_on" ); 
     628            return read_boolean_from_path( "/sys/devices/platform/s3c2410-i2c/i2c-adapter/i2c-0/0-0008/gta01-pm-gps.0/pwron" ); 
    629629#endif 
    630630            return FALSE; 
     
    640640        case GSM: 
    641641#ifdef NEOD_PLATFORM_FIC_NEO1973 
    642             write_boolean_to_path( "/sys/devices/platform/gta01-pm-gsm.0/power_on", on ); 
     642            //write_boolean_to_path( "/sys/devices/platform/gta01-pm-gsm.0/power_on", on ); 
     643            system( on ? "/etc/init.d/gsmd restart" : "/etc/init.d/gsmd stop" ); 
    643644#endif 
    644645            break; 
Note: See TracChangeset for help on using the changeset viewer.