logging: Fix RTT log backend lagging if no host
In case it was detected that RTT host was not present backend was still performing single sleep or busy wait round before dropping data. That was degrading log processing performance. Signed-off-by: Krzysztof Chruscinski <krzysztof.chruscinski@nordicsemi.no>
This commit is contained in:
parent
d5d35d06d1
commit
cae3c28a96
|
@ -185,7 +185,7 @@ static int data_out_block_mode(u8_t *data, size_t length, void *ctx)
|
|||
|
||||
if (ret) {
|
||||
on_write(retry_cnt);
|
||||
} else {
|
||||
} else if (host_present) {
|
||||
retry_cnt--;
|
||||
on_failed_write(retry_cnt);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue