summaryrefslogtreecommitdiff
path: root/anzeige.c
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-11-01 12:29:14 +0100
committerErich Eckner <git@eckner.net>2018-11-01 12:29:14 +0100
commita9679f6210fad1b1d8b05529dd6f4443c633365b (patch)
treec8271be5c740359b0dbe1027d2235bc2a91889d9 /anzeige.c
parentd9b831fcc29585eab34c58c5a67c060d886bc8a6 (diff)
downloadanzeige-a9679f6210fad1b1d8b05529dd6f4443c633365b.tar.xz
probe SENSE_PIN
Diffstat (limited to 'anzeige.c')
-rw-r--r--anzeige.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/anzeige.c b/anzeige.c
index 36465a3..8f5953a 100644
--- a/anzeige.c
+++ b/anzeige.c
@@ -70,10 +70,15 @@ int main(int argc, char **argv)
}
time_t next_update = 0;
+ scroll_data . shine_until = time(NULL) + 10;
int i=0;
while (scroll_data . keep_running) {
+ if (got_input()) {
+ next_update = 0; // update now!
+ scroll_data . shine_until = time(NULL) + 60;
+ }
if ((time(NULL) >= next_update) && (scroll_data . update == 0)) {
next_update = time(NULL) + 60; // one minute ahead