Skip to content
Snippets Groups Projects
Commit e7989825 authored by dawehr's avatar dawehr
Browse files

Made LOG_END message only send if a log was sent.

parent 9a8459c7
No related branches found
No related tags found
No related merge requests found
...@@ -170,6 +170,9 @@ void printLogging(log_t* log_struct, parameter_t* ps){ ...@@ -170,6 +170,9 @@ void printLogging(log_t* log_struct, parameter_t* ps){
int size = format_log(i, log_struct, buf); int size = format_log(i, log_struct, buf);
send_data(LOG_ID, 0, buf, size); send_data(LOG_ID, 0, buf, size);
} }
char data[1] = {0}; // 1 byte to make compilers happy
send_data(LOG_END_ID, 0, data, 0);
} }
void resetLogging() { void resetLogging() {
......
...@@ -129,8 +129,6 @@ int main() ...@@ -129,8 +129,6 @@ int main()
printLogging(&(structs.log_struct), &(structs.parameter_struct)); printLogging(&(structs.log_struct), &(structs.parameter_struct));
resetLogging(); resetLogging();
MIO7_led_off(); MIO7_led_off();
char data[1] = {0}; // 1 byte to make compilers happy
send_data(LOG_END_ID, 0, data, 0);
} }
last_kill_condition = this_kill_condition; last_kill_condition = this_kill_condition;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment