minor code style cleanup
This commit is contained in:
parent
933fff4c89
commit
9ee6406824
8 changed files with 43 additions and 43 deletions
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* @(#)$Id: button-sensor.c,v 1.4 2010/01/14 17:39:35 nifi Exp $
|
||||
* @(#)$Id: button-sensor.c,v 1.5 2010/02/08 00:00:45 nifi Exp $
|
||||
*/
|
||||
|
||||
#include "dev/button-sensor.h"
|
||||
|
@ -68,14 +68,14 @@ value(int type)
|
|||
static int
|
||||
configure(int type, int value)
|
||||
{
|
||||
switch (type) {
|
||||
switch(type) {
|
||||
case SENSORS_HW_INIT:
|
||||
BUTTON_IRQ_EDGE_SELECTD();
|
||||
BUTTON_SELECT();
|
||||
BUTTON_MAKE_INPUT();
|
||||
return 1;
|
||||
case SENSORS_ACTIVE:
|
||||
if (value) {
|
||||
if(value) {
|
||||
if(!BUTTON_IRQ_ENABLED()) {
|
||||
timer_set(&debouncetimer, 0);
|
||||
BUTTON_ENABLE_IRQ();
|
||||
|
@ -91,7 +91,7 @@ configure(int type, int value)
|
|||
static int
|
||||
status(int type)
|
||||
{
|
||||
switch (type) {
|
||||
switch(type) {
|
||||
case SENSORS_ACTIVE:
|
||||
case SENSORS_READY:
|
||||
return BUTTON_IRQ_ENABLED();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue