Skip to content

Commit

Permalink
Update GPIO SPI transfer to use string instead of char *
Browse files Browse the repository at this point in the history
  • Loading branch information
omckeon committed Mar 2, 2025
1 parent 1a50943 commit 0f28c0d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion coresdk/src/coresdk/raspi_gpio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion coresdk/src/coresdk/raspi_gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 0f28c0d

Please sign in to comment.