From 0f28c0d08af5628d4ad3dcf7f632a0feba16b730 Mon Sep 17 00:00:00 2001 From: omckeon Date: Sun, 2 Mar 2025 19:56:39 +1100 Subject: [PATCH] Update GPIO SPI transfer to use string instead of char * --- coresdk/src/coresdk/raspi_gpio.cpp | 2 +- coresdk/src/coresdk/raspi_gpio.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/coresdk/src/coresdk/raspi_gpio.cpp b/coresdk/src/coresdk/raspi_gpio.cpp index 610c1793..cb816639 100644 --- a/coresdk/src/coresdk/raspi_gpio.cpp +++ b/coresdk/src/coresdk/raspi_gpio.cpp @@ -232,7 +232,7 @@ namespace splashkit_lib #endif } - int raspi_spi_transfer(int handle, char *sendBuf, char *recvBuf, int count) + int raspi_spi_transfer(int handle, string sendBuf, string recvBuf, int count) { #ifdef RASPBERRY_PI return sk_spi_transfer(handle, sendBuf, recvBuf, count); diff --git a/coresdk/src/coresdk/raspi_gpio.h b/coresdk/src/coresdk/raspi_gpio.h index 57f75d69..2b61672d 100644 --- a/coresdk/src/coresdk/raspi_gpio.h +++ b/coresdk/src/coresdk/raspi_gpio.h @@ -142,7 +142,7 @@ namespace splashkit_lib * @param count The number of bytes to be transferred. * @returns The number of bytes that have actually been transfered. */ - int raspi_spi_transfer(int handle, char *sendBuf, char *recvBuf, int count); + int raspi_spi_transfer(int handle, string sendBuf, string recvBuf, int count); /** * @brief Cleans up and releases any resources used by the GPIO library.