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:
Krzysztof Chruscinski 2019-03-04 11:21:22 +01:00 committed by Carles Cufí
parent d5d35d06d1
commit cae3c28a96

View file

@ -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);
}