Changed the energy estimation type ENERGEST_TYPE_RECEIVE to ENERGEST_TYPE_LISTEN to highlight that energy is spent on idle listening, not just the actual reception of packets

This commit is contained in:
adamdunkels 2007-10-25 09:30:39 +00:00
parent ff006a5103
commit a9e4287cbe
6 changed files with 15 additions and 15 deletions

View file

@ -28,7 +28,7 @@
*
* This file is part of the Contiki operating system.
*
* @(#)$Id: tr1001.c,v 1.7 2007/08/07 11:11:20 nifi Exp $
* @(#)$Id: tr1001.c,v 1.8 2007/10/25 09:30:39 adamdunkels Exp $
*/
/**
* \addtogroup esb
@ -241,7 +241,7 @@ tr1001_off(void)
rxoff();
rxclear();
ENERGEST_OFF(ENERGEST_TYPE_RECEIVE);
ENERGEST_OFF(ENERGEST_TYPE_LISTEN);
return 1;
}
/*---------------------------------------------------------------------------*/
@ -256,7 +256,7 @@ tr1001_on(void)
return 1;
}
ENERGEST_ON(ENERGEST_TYPE_RECEIVE);
ENERGEST_ON(ENERGEST_TYPE_LISTEN);
onoroff = ON;
rxon();