From 2835a082410bc5f450fc210814ece92d0466d984 Mon Sep 17 00:00:00 2001 From: Arjen Baart Date: Tue, 10 Nov 2020 07:56:42 +0100 Subject: [PATCH] lightswitch: 0.2s sample period --- src/lightswitch.c | 4 ++-- src/wakeup.conf | 2 +- src/wakeup_alarms.xml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.20.1