From: Arjen Baart Date: Tue, 10 Nov 2020 06:56:42 +0000 (+0100) Subject: lightswitch: 0.2s sample period X-Git-Url: http://www.andromeda.nl/gitweb/?a=commitdiff_plain;h=2835a082410bc5f450fc210814ece92d0466d984;p=wakeup.git lightswitch: 0.2s sample period --- diff --git a/src/lightswitch.c b/src/lightswitch.c index 8edc613..d23997f 100644 --- a/src/lightswitch.c +++ b/src/lightswitch.c @@ -53,8 +53,8 @@ int main(int argc, char *argv[]) int old_state, new_state; struct timespec interval; - interval.tv_sec = 1; - interval.tv_nsec = 0; + interval.tv_sec = 0; + interval.tv_nsec = 200000000; // Set up gpi pointer for direct register access setup_io(); diff --git a/src/wakeup.conf b/src/wakeup.conf index 40b9de2..239ca29 100644 --- a/src/wakeup.conf +++ b/src/wakeup.conf @@ -6,7 +6,7 @@ file - /var/log + /var/log/wakeup 0 diff --git a/src/wakeup_alarms.xml b/src/wakeup_alarms.xml index d6ce205..2df9d44 100644 --- a/src/wakeup_alarms.xml +++ b/src/wakeup_alarms.xml @@ -13,7 +13,7 @@ sunrise curtain -o 2 - lightcontrol -r 0 -g 0 -w 0-f 200 + lightcontrol -r 0 -g 0 -w 0 -f 200 weekdays 1,2,3,4,5