2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00

Don't sleep during eips calls for the tar feedback

This commit is contained in:
NiLuJe 2014-08-01 21:59:13 +02:00
parent e749018f71
commit 3a0beed410
2 changed files with 7 additions and 1 deletions

View File

@ -3,6 +3,9 @@
# KOReader's working directory
KOREADER_DIR="/mnt/us/koreader"
# We do NOT want to sleep during eips calls!
export EIPS_NO_SLEEP="true"
# Load our helper functions...
if [ -f "${KOREADER_DIR}/libkohelper.sh" ] ; then
source "${KOREADER_DIR}/libkohelper.sh"

View File

@ -72,7 +72,10 @@ eips_print_bottom_centered()
# Sleep a tiny bit to workaround the logic in the 'new' (K4+) eInk controllers that tries to bundle updates,
# otherwise it may drop part of our messages because of other screen updates from KUAL...
usleep 150000 # 150ms
# Unless we really don't want to sleep, for special cases...
if [ ! -n "${EIPS_NO_SLEEP}" ] ; then
usleep 150000 # 150ms
fi
# And finally, show our formatted message centered on the bottom of the screen (NOTE: Redirect to /dev/null to kill unavailable character & pixel not in range warning messages)
eips 0 $((${EIPS_MAXLINES} - 2 - ${kh_eips_y_shift_up})) "${kh_eips_string}" >/dev/null