fix(drvers/roboclaw): Fix roboclaw clang-tidy errors

This commit is contained in:
Valentin Bugrov
2026-04-24 12:19:50 -04:00
committed by Ramon Roche
parent 0000f6d80e
commit 7589f13bcd
+2 -2
View File
@@ -334,7 +334,7 @@ int Roboclaw::writeCommandWithPayload(Command command, uint8_t *wbuff, size_t by
// Not all bytes sent
if (bytes_written < packet_size) {
PX4_ERR("Only wrote %d out of %d bytes", bytes_written, bytes_to_write);
PX4_ERR("Only wrote %zu out of %zu bytes", bytes_written, bytes_to_write);
return ERROR;
}
@@ -381,7 +381,7 @@ int Roboclaw::writeCommand(Command command)
size_t bytes_written = write(_uart_fd, buffer, 2);
if (bytes_written < 2) {
PX4_ERR("Only wrote %d out of %d bytes", bytes_written, 2);
PX4_ERR("Only wrote %zu out of %d bytes", bytes_written, 2);
return ERROR;
}