From f8b2d237e86c5febacdede55ef7af0caae715bf1 Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Fri, 19 Mar 2021 15:52:39 +0100 Subject: [PATCH] fixed for fsfw update --- linux/spi/SpiComIF.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linux/spi/SpiComIF.cpp b/linux/spi/SpiComIF.cpp index cc3b3cce..b94e1249 100644 --- a/linux/spi/SpiComIF.cpp +++ b/linux/spi/SpiComIF.cpp @@ -5,7 +5,7 @@ #include #include -#include +#include #include #include @@ -174,7 +174,7 @@ ReturnValue_t SpiComIF::sendMessage(CookieIF *cookie, const uint8_t *sendData, s gpioId_t gpioId = spiCookie->getChipSelectPin(); /* GPIO access is mutex protected */ - MutexHelper(spiMutex, timeoutType, timeoutMs); + MutexGuard(spiMutex, timeoutType, timeoutMs); /* Pull SPI CS low. For now, no support for active high given */ if(gpioId != gpio::NO_GPIO) { @@ -255,7 +255,7 @@ ReturnValue_t SpiComIF::requestReceiveMessage(CookieIF *cookie, size_t requestLe } gpioId_t gpioId = spiCookie->getChipSelectPin(); - MutexHelper(spiMutex, timeoutType, timeoutMs); + MutexGuard(spiMutex, timeoutType, timeoutMs); if(gpioId != gpio::NO_GPIO) { gpioComIF->pullLow(gpioId); }