From 8919fc632fb72afbb100e941815650680c8931ae Mon Sep 17 00:00:00 2001 From: Railz Date: Tue, 5 Mar 2019 13:17:29 +0100 Subject: [PATCH] Fixed nextTick calculation for booster --- Geigerzaehler/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Geigerzaehler/main.c b/Geigerzaehler/main.c index 1eed11b..19d59e3 100644 --- a/Geigerzaehler/main.c +++ b/Geigerzaehler/main.c @@ -76,7 +76,7 @@ int main() } // Calculate when next high/low should be set - boost_highVoltage_nextTick = clock() + 1/(boost_frequency/2) // Half of time it should be high/low + boost_highVoltage_nextTick = clock() + F_CPU * 1/(boost_frequency/2) // Half of time it should be high/low } }else {