mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-10 06:17:26 +08:00
fix(drvers/roboclaw): Fix roboclaw clang-tidy errors
This commit is contained in:
committed by
Ramon Roche
parent
0000f6d80e
commit
7589f13bcd
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user