From d8403a4e829d0a7871801d69c1bf93cef148bceb Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Sat, 27 Jul 2024 09:28:29 -0700 Subject: [PATCH] Added call to helper function for ADC_INIT test --- tests/ADC/test_ADC.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/ADC/test_ADC.cpp b/tests/ADC/test_ADC.cpp index cee3d26..c077306 100644 --- a/tests/ADC/test_ADC.cpp +++ b/tests/ADC/test_ADC.cpp @@ -73,6 +73,9 @@ TEST(test_ADC, ADC_InitPortAPin7UsesCorrectRegisters) TEST(test_ADC, ADC_InitPortAPin0UsesCorrectRegisters) { + + ADCStoresPortState(); + //Check for setting the direction to input. mock().expectOneCall("RegEdit_SetBit") .withPointerParameter("reg", (void *) &PORTA.DIRCLR)