Returning the actual value rather than something read during an interrupt

This commit is contained in:
adamdunkels 2007-05-22 21:06:57 +00:00
parent de4ef02e49
commit b32a9b9be5

View file

@ -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.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
* Created : 2005-11-01
* Updated : $Date: 2006/06/18 08:07:30 $
* $Revision: 1.3 $
* Updated : $Date: 2007/05/22 21:06:57 $
* $Revision: 1.4 $
*/
#include "dev/battery-sensor.h"
@ -79,7 +79,7 @@ active(void)
static unsigned int
value(int type)
{
return battery_value;
return ADC12MEM6/*battery_value*/;
}
/*---------------------------------------------------------------------------*/
static int