void serial_sendlog() { flashstorage_log_pause(); log_read_start(); char buffer[1024]; int size = log_read_block(buffer); for(;size!=0;) { if(size != 0) serial_write_string(buffer); size = log_read_block(buffer); } flashstorage_log_resume(); }
/** * Dumps the data log as a comma-separated stream. Pauses * logging at the beginning and restarts afterwards. */ void cmd_logcsv(char *line) { flashstorage_log_pause(); log_read_start(); char buffer[1024]; int size = log_read_csv(buffer); for(;size!=0;) { if(size != 0) serial_write_string(buffer); size = log_read_csv(buffer); } flashstorage_log_resume(); }