Skip to content

Commit 9bc8006

Browse files
committed
Update SPI callback prototype
1 parent b61d578 commit 9bc8006

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Canbus_app/libraries/Spi_lib.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// Function to callback for the SPI to work
44
inline static void furi_hal_spi_bus_r_handle_event_callback(
5-
FuriHalSpiBusHandle* handle,
5+
const FuriHalSpiBusHandle* handle,
66
FuriHalSpiBusHandleEvent event,
77
const LL_SPI_InitTypeDef* preset) {
88
if(event == FuriHalSpiBusHandleEventInit) {
@@ -48,7 +48,7 @@ inline static void furi_hal_spi_bus_r_handle_event_callback(
4848
}
4949

5050
// Here is the CALLBACK
51-
static void spi_bus_callback(FuriHalSpiBusHandle* handle, FuriHalSpiBusHandleEvent event) {
51+
static void spi_bus_callback(const FuriHalSpiBusHandle* handle, FuriHalSpiBusHandleEvent event) {
5252
furi_hal_spi_bus_r_handle_event_callback(handle, event, SPEED_8MHZ);
5353
}
5454

0 commit comments

Comments
 (0)