Skip to content

Commit 307e1fe

Browse files
committed
refactor: improve error logging formatting in FastSyncRead and FastBulkRead methods
1 parent 6fedcc5 commit 307e1fe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/dynamixel/dynamixel.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,8 @@ DxlError Dynamixel::GetDxlValueFromSyncRead(double period_ms)
976976
fprintf(stderr, "FastSyncRead TxRx failed (attempt %d/10)\n", fast_read_fail_count_);
977977
if (fast_read_fail_count_ >= 10) {
978978
// Permanently switch to normal sync read
979-
fprintf(stderr, "FastSyncRead failed 10 times, switching to normal SyncRead "
979+
fprintf(
980+
stderr, "FastSyncRead failed 10 times, switching to normal SyncRead "
980981
"permanently.\n");
981982
use_fast_read_protocol_ = false;
982983
// Set up normal sync read handler
@@ -1295,7 +1296,8 @@ DxlError Dynamixel::GetDxlValueFromBulkRead(double period_ms)
12951296
group_fast_bulk_read_ = nullptr;
12961297
}
12971298
// Permanently switch to normal bulk read
1298-
fprintf(stderr,
1299+
fprintf(
1300+
stderr,
12991301
"FastBulkRead failed 10 times, switching to normal BulkRead permanently.\n");
13001302
use_fast_read_protocol_ = false;
13011303
// Set up normal bulk read handler

0 commit comments

Comments
 (0)