diff --git a/firmware/hw_layer/sensors/hip9011.cpp b/firmware/hw_layer/sensors/hip9011.cpp index 2afa86485c..183a7b8cf7 100644 --- a/firmware/hw_layer/sensors/hip9011.cpp +++ b/firmware/hw_layer/sensors/hip9011.cpp @@ -94,7 +94,13 @@ static SPIDriver *spi; static SPIConfig hipSpiCfg = { .circular = false, +#ifdef _CHIBIOS_RT_CONF_VER_6_1_ .end_cb = NULL, +#else + .slave = false, + .data_cb = NULL, + .error_cb = NULL, +#endif .ssport = NULL, .sspad = 0, .cr1 =