[Assigner] Clock period changed

This commit is contained in:
Daniela 2019-04-14 19:06:47 +02:00
parent 35a8bcce3d
commit 109c58cb17
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@
#define LOG_MODULE "Assigner"
#define LOG_LEVEL LOG_LEVEL_INFO
#define OPENING_PERIOD (30*CLOCK_SECOND)
#define OPENING_PERIOD (300*CLOCK_SECOND)
PROCESS(assigner_process, "Assigner process");

View File

@ -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
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;
else
break;