diff --git a/Project/applications/smartcities/include/buffer.h b/Project/applications/smartcities/include/buffer.h index 29d1c22..dd0a9ec 100644 --- a/Project/applications/smartcities/include/buffer.h +++ b/Project/applications/smartcities/include/buffer.h @@ -17,6 +17,6 @@ void put_message(char* info, char** buf,uint32_t* index); int check_memory(void); int send(char** buf, uint32_t index, char *provider_ID, char *sensor_ID); - +void destroy(char** buf); #endif \ No newline at end of file diff --git a/Project/applications/smartcities/main.c b/Project/applications/smartcities/main.c index 6d76249..956e771 100644 --- a/Project/applications/smartcities/main.c +++ b/Project/applications/smartcities/main.c @@ -71,7 +71,7 @@ int main(void) } } else if(res==HARD_REACHED){ - //destroy + destroy(buffer); } chThdSleepMilliseconds(500); }