logger: fix line_pos setup in rtt backend drop mode
Fix initial write position in line_buf when drop mode is selected. Signed-off-by: Pavel Kral <pavel.kral@omsquare.com>
This commit is contained in:
parent
0459ee4fa1
commit
02afc16dcb
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ static int line_out(u8_t data)
|
|||
if (log_backend_rtt_write()) {
|
||||
return 1;
|
||||
}
|
||||
line_pos = line_buf;
|
||||
line_pos = drop_cnt > 0 ? line_buf + DROP_MSG_LEN : line_buf;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue