From b202cf85c5e47f018126ab86c41e9ee397b0f278 Mon Sep 17 00:00:00 2001 From: Patrick Kappl Date: Sat, 9 Nov 2024 16:26:15 +0000 Subject: [PATCH] Fix latchup protection pin issues in `SpiSupervisor.test.cpp` --- Tests/HardwareTests/SpiSupervisor.test.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Tests/HardwareTests/SpiSupervisor.test.cpp b/Tests/HardwareTests/SpiSupervisor.test.cpp index c4f6fa70..7c19bf4e 100644 --- a/Tests/HardwareTests/SpiSupervisor.test.cpp +++ b/Tests/HardwareTests/SpiSupervisor.test.cpp @@ -29,9 +29,7 @@ class SpiSupervisorTest : public RODOS::StaticThread<> private: void init() override { -#if HW_VERSION >= 27 - rfLatchupDisableGpioPin.Direction(hal::PinDirection::out); -#endif + InitializeRfLatchupDisablePins(); } @@ -39,9 +37,7 @@ class SpiSupervisorTest : public RODOS::StaticThread<> { using RODOS::PRINTF; -#if HW_VERSION >= 27 - rfLatchupDisableGpioPin.Reset(); -#endif + EnableRfLatchupProtection(); PRINTF("\nSPI supervisor test\n\n");