[Assigner] Clock period changed
This commit is contained in:
parent
35a8bcce3d
commit
109c58cb17
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
#define LOG_MODULE "Assigner"
|
#define LOG_MODULE "Assigner"
|
||||||
#define LOG_LEVEL LOG_LEVEL_INFO
|
#define LOG_LEVEL LOG_LEVEL_INFO
|
||||||
#define OPENING_PERIOD (30*CLOCK_SECOND)
|
#define OPENING_PERIOD (300*CLOCK_SECOND)
|
||||||
|
|
||||||
|
|
||||||
PROCESS(assigner_process, "Assigner process");
|
PROCESS(assigner_process, "Assigner process");
|
||||||
|
@ -61,7 +61,7 @@ bool bat_update(linkaddr_t src_cart_addr, uint8_t battery_level)
|
|||||||
//looking for cart->address = address of who sent the message with the battery
|
//looking for cart->address = address of who sent the message with the battery
|
||||||
while(c)
|
while(c)
|
||||||
{
|
{
|
||||||
if(linkaddr_cmp(&c->cart_address,&src_cart_addr) == 0)
|
if(linkaddr_cmp(&(c->cart_address),&src_cart_addr) == 0)
|
||||||
c = c->next;
|
c = c->next;
|
||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user