[riot-notifications] [RIOT-OS/RIOT] [RFC, WIP] drivers/periph_spi: improve API of spi_acquire (#15904)

Marian Buschsieweke notifications at github.com
Wed Sep 1 17:33:39 CEST 2021

@maribu commented on this pull request.

>  {
-    if (spi_acquire(BUS, CS, MODE, CLK) != SPI_OK) {
-        return BMX280_ERR_BUS;
-    }
+    spi_acquire(BUS, CS, MODE, CLK);
     return BMX280_OK;

This is needed, since the `_acquire()` function returns `int` and needs to remain compatible with the I2C flavor.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210901/314c47b9/attachment.htm>

More information about the notifications mailing list