Updated to new sensors API

This commit is contained in:
adamdunkels 2010-02-23 18:43:43 +00:00
parent 757ca59511
commit 08f06d8039
4 changed files with 21 additions and 28 deletions

View file

@ -10,22 +10,22 @@ button_press(void)
sensors_changed(&button_sensor);
}
/*---------------------------------------------------------------------------*/
static unsigned int
static int
value(int type)
{
return 0;
}
/*---------------------------------------------------------------------------*/
static int
configure(int type, void *c)
configure(int type, int value)
{
return 0;
}
/*---------------------------------------------------------------------------*/
static void *
static int
status(int type)
{
return NULL;
return 0;
}
/*---------------------------------------------------------------------------*/
SENSORS_SENSOR(button_sensor, BUTTON_SENSOR,