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)