Skip to content

Commit 00f7d86

Browse files
committed
refactor: Improve warning message formatting
1 parent 6f696f4 commit 00f7d86

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/dynamixel/dynamixel_info.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,15 @@ void DynamixelInfo::ReadDxlModelFile(uint8_t id, uint16_t model_num)
116116

117117
// Set default values and warn if parameters are missing
118118
if (!torque_constant_set) {
119-
fprintf(stderr, "[WARN] Model file doesn't contain torque_constant parameter. "
120-
"Using default value: 1.0\n");
119+
fprintf(
120+
stderr, "[WARN] Model file doesn't contain torque_constant parameter. "
121+
"Using default value: 1.0\n");
121122
temp_dxl_info.torque_constant = 1.0;
122123
}
123124
if (!velocity_unit_set) {
124-
fprintf(stderr, "[WARN] Model file doesn't contain velocity_unit parameter. "
125-
"Using default value: 0.01\n");
125+
fprintf(
126+
stderr, "[WARN] Model file doesn't contain velocity_unit parameter. "
127+
"Using default value: 0.01\n");
126128
temp_dxl_info.velocity_unit = 0.01;
127129
}
128130

0 commit comments

Comments
 (0)