diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2017-09-20 12:07:16 -0700 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-09-26 08:48:46 +0200 |
commit | 0b8f3441aa032b69770f59cafc37087a6d505cee (patch) | |
tree | 4583a56f279f92530f6a80430635581368a9a1b6 /common/imx-bbu-nand-fcb.c | |
parent | b2ac13f498fb217194d6afe836981411bf14158c (diff) | |
download | barebox-0b8f3441aa032b69770f59cafc37087a6d505cee.tar.gz barebox-0b8f3441aa032b69770f59cafc37087a6d505cee.tar.xz |
console_countdown: ignore errors in getchar()
The getchar() call may return an error reported as a -1, e.g. when the
console detects a RATP message and switches to RATP mode.
In general it probably is a good idea to ignore these errors in the
console countdown operation; and in particular for the RATP usecase,
this also prevents from interfering with the countdown and menu just
when switching one of the consoles to RATP mode.
As a hint, this is what the standard console was printing due to this
issue when the RATP console was activated:
Hit m for menu or any other key to stop autoboot: [: missing `]'
Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/imx-bbu-nand-fcb.c')
0 files changed, 0 insertions, 0 deletions