From fae7509dba1f1823fd9932999c82dd2236237d9a Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Sun, 28 Jul 2024 15:32:41 -0700 Subject: [PATCH] removed magic number --- src/zero_cross_detection/zero_cross_detection.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zero_cross_detection/zero_cross_detection.c b/src/zero_cross_detection/zero_cross_detection.c index 6099609..a65bb2e 100644 --- a/src/zero_cross_detection/zero_cross_detection.c +++ b/src/zero_cross_detection/zero_cross_detection.c @@ -19,8 +19,8 @@ void ZCD_Setup(void) { - ADC_Init(7); - ADC_Enable(7); + ADC_Init(ZCD_PIN); + ADC_Enable(ZCD_PIN); } bool ZCD_IsTriggered()