summaryrefslogtreecommitdiffstats
path: root/hci/src/hci_hal_h4.c
diff options
context:
space:
mode:
Diffstat (limited to 'hci/src/hci_hal_h4.c')
-rw-r--r--hci/src/hci_hal_h4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hci/src/hci_hal_h4.c b/hci/src/hci_hal_h4.c
index d4dc105f5..09d035454 100644
--- a/hci/src/hci_hal_h4.c
+++ b/hci/src/hci_hal_h4.c
@@ -197,7 +197,7 @@ static uint16_t transmit_data(serial_data_type_t type, uint8_t *data, uint16_t l
uint16_t transmitted_length = 0;
while (length > 0) {
- ssize_t ret = write(uart_fd, data + transmitted_length, length);
+ ssize_t ret = TEMP_FAILURE_RETRY(write(uart_fd, data + transmitted_length, length));
switch (ret) {
case -1:
LOG_ERROR("In %s, error writing to the uart serial port: %s", __func__, strerror(errno));