Changeset 1643


Ignore:
Timestamp:
02/05/12 21:37:04 (2 years ago)
Author:
reyalp
Message:

a1100 - override _GetBatteryTemperature with dummy to prevent crash

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/release-1_0/platform/a1100/lib.c

    r1233 r1643  
    4444 return 122;  
    4545} 
     46 
     47/* 
     48GetBatteryTemperature usually will get back temperature of battery compartment/batteries. GetBatteryTemperature is implemented in Canon's firmware for SX120IS. 
     49Firmware entry point is identified but function is not usable.  
     50Camera will crash if Canon's GetBatteryTemperature is called by CHDK. 
     51To avoid a crash Canon's GetBatteryTemperature must not called. As long CHDK general code do not distinguish between cameras that support or don't support GetBatteryTemperature,  
     52this function will be implemented as specific CHDK-code. It returns always with -99 
     53This overrides original canon entry point from stubs_entry.S 
     54*/ 
     55int _GetBatteryTemperature() 
     56{ 
     57      return -99; 
     58} 
     59 
Note: See TracChangeset for help on using the changeset viewer.