Commit 320b770869555ff28fd468bd6605857a155b4719

Authored by Maria Jorba Brosa
1 parent 461ab220

--no commit message

Project/applications/smartcities/include/buffer.h
... ... @@ -17,6 +17,6 @@
17 17 void put_message(char* info, char** buf,uint32_t* index);
18 18 int check_memory(void);
19 19 int send(char** buf, uint32_t index, char *provider_ID, char *sensor_ID);
20   -
  20 +void destroy(char** buf);
21 21  
22 22 #endif
23 23 \ No newline at end of file
... ...
Project/applications/smartcities/main.c
... ... @@ -71,7 +71,7 @@ int main(void)
71 71 }
72 72 }
73 73 else if(res==HARD_REACHED){
74   - //destroy
  74 + destroy(buffer);
75 75 }
76 76 chThdSleepMilliseconds(500);
77 77 }
... ...