gecko-dev/hal/gonk
Thomas Zimmermann 8070156e24 Bug 794051 - Read battery status via fgets. r=dhylands
The call to fscanf for reading the battery status used an incorrect pointer in its
arguments. The code only worked because the first byte of a character array is the
first element within the array. To fix this problem, fscanf has been replaced by
fgets, which is less error prone and checks the length of the supplied array.

Additionaly, we don't want to operate on an undefined result if fgets fails. In
this case we assume that the battery is not being charged.
2012-09-26 08:45:06 -07:00
..
GonkFMRadio.cpp Bug 749053 - FM radio support: hal implementation, r=jlebar 2012-09-19 11:17:13 -04:00
GonkHal.cpp Bug 794051 - Read battery status via fgets. r=dhylands 2012-09-26 08:45:06 -07:00
GonkSensor.cpp Bug 788118 - Non-continuous type of sensor blocked thread on polling so the action of switching sensor can't be done on blocked thread. r=mwu 2012-09-18 10:51:35 +08:00
GonkSwitch.cpp Bug 791329 - Let GonkSwitch to know the status about headset or headphone from uevent. r=dhylands 2012-09-25 19:03:13 +08:00
tavarua.h Bug 749053 - FM radio support: hal implementation, r=jlebar 2012-09-19 11:17:13 -04:00
UeventPoller.cpp Bug 774614 - Relicense Gonk/Gecko interface code to Apache License 2.0. 2012-07-20 10:10:44 +01:00
UeventPoller.h Bug 774614 - Relicense Gonk/Gecko interface code to Apache License 2.0. 2012-07-20 10:10:44 +01:00