Returning the actual value rather than something read during an interrupt
This commit is contained in:
parent
de4ef02e49
commit
b32a9b9be5
1 changed files with 4 additions and 4 deletions
|
@ -26,14 +26,14 @@
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: battery-sensor.c,v 1.3 2006/06/18 08:07:30 adamdunkels Exp $
|
* $Id: battery-sensor.c,v 1.4 2007/05/22 21:06:57 adamdunkels Exp $
|
||||||
*
|
*
|
||||||
* -----------------------------------------------------------------
|
* -----------------------------------------------------------------
|
||||||
*
|
*
|
||||||
* Author : Adam Dunkels, Joakim Eriksson, Niclas Finne
|
* Author : Adam Dunkels, Joakim Eriksson, Niclas Finne
|
||||||
* Created : 2005-11-01
|
* Created : 2005-11-01
|
||||||
* Updated : $Date: 2006/06/18 08:07:30 $
|
* Updated : $Date: 2007/05/22 21:06:57 $
|
||||||
* $Revision: 1.3 $
|
* $Revision: 1.4 $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "dev/battery-sensor.h"
|
#include "dev/battery-sensor.h"
|
||||||
|
@ -79,7 +79,7 @@ active(void)
|
||||||
static unsigned int
|
static unsigned int
|
||||||
value(int type)
|
value(int type)
|
||||||
{
|
{
|
||||||
return battery_value;
|
return ADC12MEM6/*battery_value*/;
|
||||||
}
|
}
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
static int
|
static int
|
||||||
|
|
Loading…
Add table
Reference in a new issue