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()