refactor: remove mut_shared_buffer function and streamline buffer handling in SPI transactions

This commit is contained in:
2025-08-07 00:26:53 +08:00
parent 6269bb99c4
commit ffcaba10fd
2 changed files with 66 additions and 60 deletions

View File

@ -35,8 +35,6 @@ constexpr uint8_t SPI_READ_BUFFER_CMD = RADIOLIB_SX126X_CMD_READ_BUFFER;
constexpr size_t DEFAULT_TIMEOUT_MS = 1000;
std::span<uint8_t> mut_shared_buffer();
struct spi_config_t {
spi_host_device_t host_id;
int clock_speed_hz;