Skip to content

Commit 5564ec7

Browse files
kindle: Only use NO_EIPS_SLEEP when KUAL is "yes"
Behaviour guarded by NO_EIPS_SLEEP by default is only applicable when launched via KUAL
1 parent aeff032 commit 5564ec7

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

platform/kindle/koreader.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,10 @@ if [ "${1}" = "--kual" ]; then
8383
shift 1
8484
FROM_KUAL="yes"
8585
REEXEC_FLAGS="${REEXEC_FLAGS} --kual"
86+
export NO_EIPS_SLEEP="no"
8687
else
8788
FROM_KUAL="no"
89+
export NO_EIPS_SLEEP="yes"
8890
fi
8991

9092
# By default, don't stop the framework.
@@ -98,8 +100,7 @@ elif [ "${1}" = "--asap" ]; then
98100
shift 1
99101
NO_SLEEP="yes"
100102
REEXEC_FLAGS="${REEXEC_FLAGS} --asap"
101-
# Don't sleep during eips calls either...
102-
export EIPS_NO_SLEEP="true"
103+
export NO_EIPS_SLEEP="yes"
103104
else
104105
NO_SLEEP="no"
105106
fi

platform/kindle/libkohelper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ eips_print_bottom_centered() {
5757
# Sleep a tiny bit to workaround the logic in the 'new' (K4+) eInk controllers that tries to bundle updates,
5858
# otherwise it may drop part of our messages because of other screen updates from KUAL...
5959
# Unless we really don't want to sleep, for special cases...
60-
if [ -z "${EIPS_NO_SLEEP}" ]; then
60+
if [ "${EIPS_NO_SLEEP}" = "no" ]; then
6161
usleep 150000 # 150ms
6262
fi
6363

0 commit comments

Comments
 (0)