Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion drivers/lora_lbm/lr11xx/lr11xx_hal.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ lr11xx_hal_status_t lr11xx_hal_write(const void *context,
}
};

const struct spi_buf_set tx = {.buffers = tx_buf, .count = ARRAY_SIZE(tx_buf)};
const struct spi_buf_set tx = {.buffers = tx_buf, .count = (data_length ? ARRAY_SIZE(tx_buf) : ((ARRAY_SIZE(tx_buf))-1))};

ret = spi_write_dt(&config->spi, &tx);
if (ret) {
Expand Down