diff options
author | Erich Eckner <git@eckner.net> | 2018-11-01 12:29:14 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-11-01 12:29:14 +0100 |
commit | a9679f6210fad1b1d8b05529dd6f4443c633365b (patch) | |
tree | c8271be5c740359b0dbe1027d2235bc2a91889d9 /anzeige.c | |
parent | d9b831fcc29585eab34c58c5a67c060d886bc8a6 (diff) | |
download | anzeige-a9679f6210fad1b1d8b05529dd6f4443c633365b.tar.xz |
probe SENSE_PIN
Diffstat (limited to 'anzeige.c')
-rw-r--r-- | anzeige.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |