minor code style cleanup
This commit is contained in:
parent
933fff4c89
commit
9ee6406824
8 changed files with 43 additions and 43 deletions
|
@ -26,14 +26,14 @@
|
|||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: battery-sensor.c,v 1.5 2010/01/14 17:39:35 nifi Exp $
|
||||
* $Id: battery-sensor.c,v 1.6 2010/02/08 00:00:45 nifi Exp $
|
||||
*
|
||||
* -----------------------------------------------------------------
|
||||
*
|
||||
* Author : Adam Dunkels, Joakim Eriksson, Niclas Finne
|
||||
* Created : 2005-11-01
|
||||
* Updated : $Date: 2010/01/14 17:39:35 $
|
||||
* $Revision: 1.5 $
|
||||
* Updated : $Date: 2010/02/08 00:00:45 $
|
||||
* $Revision: 1.6 $
|
||||
*/
|
||||
|
||||
#include "dev/battery-sensor.h"
|
||||
|
@ -60,12 +60,12 @@ value(int type)
|
|||
static int
|
||||
configure(int type, int value)
|
||||
{
|
||||
switch (type) {
|
||||
switch(type) {
|
||||
case SENSORS_HW_INIT:
|
||||
battery_value = 0;
|
||||
return 1;
|
||||
case SENSORS_ACTIVE:
|
||||
if (value) {
|
||||
if(value) {
|
||||
if(!irq_adc12_active(6)) {
|
||||
irq_adc12_activate(6, (INCH_4 + SREF_0), irq);
|
||||
}
|
||||
|
@ -80,7 +80,7 @@ configure(int type, int value)
|
|||
static int
|
||||
status(int type)
|
||||
{
|
||||
switch (type) {
|
||||
switch(type) {
|
||||
case SENSORS_ACTIVE:
|
||||
case SENSORS_READY:
|
||||
return irq_adc12_active(6);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue