summaryrefslogtreecommitdiffstats
path: root/hci/src/hci_hal_mct.c
diff options
context:
space:
mode:
Diffstat (limited to 'hci/src/hci_hal_mct.c')
-rw-r--r--hci/src/hci_hal_mct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hci/src/hci_hal_mct.c b/hci/src/hci_hal_mct.c
index 2c7a32336..318d812f6 100644
--- a/hci/src/hci_hal_mct.c
+++ b/hci/src/hci_hal_mct.c
@@ -249,7 +249,7 @@ static uint16_t transmit_data_on(int fd, uint8_t *data, uint16_t length) {
uint16_t transmitted_length = 0;
while (length > 0) {
- ssize_t ret = write(fd, data + transmitted_length, length);
+ ssize_t ret = TEMP_FAILURE_RETRY(write(fd, data + transmitted_length, length));
switch (ret) {
case -1:
LOG_ERROR("In %s, error writing to the serial port with fd %d: %s", __func__, fd, strerror(errno));