|
||||
Re: [TESTING] - NAND OMGB (1.2.3)
Quote:
Code:
diff --git a/arch/arm/mach-msm/htc_battery_smem.c b/arch/arm/mach-msm/htc_battery_smem.c index 1d9e750..7967b28 100644 --- a/arch/arm/mach-msm/htc_battery_smem.c +++ b/arch/arm/mach-msm/htc_battery_smem.c @@ -1371,7 +1371,12 @@ static int htc_rhod_batt_corr( struct battery_info_reply *buffer ) /* TODO: temp algo is not ok..if someone have the timte -> must look into the driver */ buffer->batt_tempRAW = ( buffer->batt_tempRAW * 5200 ) / htc_adc_range; - av_index = ( buffer->batt_tempRAW * 18 ) / ( 2600 - buffer->batt_tempRAW ); + /* HACK: This is a giant hack since if batt_tempRAW = 2600 we get a div by 0 */ + if (buffer->batt_tempRAW < 2600) { + av_index = ( buffer->batt_tempRAW * 18 ) / ( 2600 - buffer->batt_tempRAW ); + } else { + av_index =1347; + } buffer->batt_tempRAW = htc_battery_temperature_lut( av_index ); if ( buffer->batt_tempRAW < 250 ) /* fixed til so long we can get constant values - otherwise the algo wouln'T work good */ buffer->batt_tempRAW = 250;
__________________
|
This post has been thanked 2 times. |
|
||||
Re: [TESTING] - NAND OMGB (1.2.3)
Quote:
|
|
||||
Re: [TESTING] - NAND OMGB (1.2.3)
Quote:
Last time I ran it I was going 38 hours before the battery cried uncle. I've pushed gps from 1.2.2 into this build but have it turned off for now. Once things appear stable I'll start mucking around with it again. Updated the keymaps to get long press recent apps. Still need to try updating the APN to see if Boost MMS will work. I'm hoping LK doesn't need another update for a while, repeating today's pain is not high on my list of fun things to do. |
|
||||
Re: [TESTING] - NAND OMGB (1.2.3)
Quote:
SoD when I turn on data connection, leave it until screen auto turn off. Seems no error in kernel logs, does SMD_DS trap into deadlock? Last edited by muziling; 01-17-2012 at 01:19 AM. |
|
||||
Re: [TESTING] - NAND OMGB (1.2.3)
Quote:
http://forum.ppcgeeks.com/2164598-post993.html |
|
||||
Re: [TESTING] - NAND OMGB (1.2.3)
Quote:
Edit: I just tested with the h2w headset and there is no microphone either. So yea, that needs to be fixed. Last edited by [ACL]; 01-17-2012 at 01:39 AM. |
|
||||
Re: [TESTING] - NAND OMGB (1.2.3)
Quote:
|
|
||||
Re: [TESTING] - NAND OMGB (1.2.3)
Quote:
So something recent broke mic prob |
|
|
|