Fixed compile warnings

This commit is contained in:
CarlWachter 2025-03-27 13:31:06 +01:00
parent 4f3b9953ea
commit becbf4327f
3 changed files with 4 additions and 1 deletions

View File

@ -31,6 +31,7 @@ namespace sta
*/
SPI(const SPISettings & settings, Mutex * mutex = nullptr);
using Interface::transfer;
/**
* @brief Send and receive data simultaneously.
*

View File

@ -21,7 +21,7 @@ namespace sta
STA_ASSERT(txBuffer != nullptr);
STA_ASSERT(rxBuffer != nullptr);
intf_->transfer(txBuffer, rxBuffer, size, timeout);
return intf_->transfer(txBuffer, rxBuffer, size, timeout);
}
const SPISettings & SPIDevice::settings() const

View File

@ -154,6 +154,8 @@ namespace sta
return HAL_SPI_Transmit(handle_, reinterpret_cast<uint8_t *>(&dummy), 1, timeout) == HAL_OK;
}
}
return false;
}
STM32SPIDevice::STM32SPIDevice(STM32SPI * intf, STM32GpioPin * csPin)