fix compilation on GCC <= 7.x

This commit is contained in:
Samuel Sadok
2020-08-19 11:38:38 +02:00
parent c0b1d5a0e7
commit d021945686
@@ -89,6 +89,7 @@ bool Stm32SpiArbiter::transfer(SPI_InitTypeDef config, Stm32Gpio ncs_gpio, const
.length = length,
.on_complete = [](void* ctx, bool success) { *(volatile uint8_t*)ctx = success ? 1 : 0; },
.on_complete_ctx = (void*)&result,
.is_in_use = false,
.next = nullptr
};