tools: kwboot: Fix detection of quit esc sequence
authorPali Rohár <pali@kernel.org>
Thu, 3 Feb 2022 16:45:20 +0000 (17:45 +0100)
committerStefan Roese <sr@denx.de>
Thu, 10 Feb 2022 06:12:16 +0000 (07:12 +0100)
commitde7514046ea5e66ecdfcffc59031e0561d5b3aa6
tree02b153c6d81f358d2658284ed4bbcb9ce4af4f8a
parentf99a169c19149fd005783c37c815518fb5ac9bdf
tools: kwboot: Fix detection of quit esc sequence

Quit esc sequence may be also in the middle of the read buffer.
Fix the detection for that case.

Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Stefan Roese <sr@denx.de>
tools/kwboot.c