mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-21 15:34:33 +08:00
change info dump command to 'i'
This commit is contained in:
@@ -169,7 +169,7 @@ void motor_parse_cmd(uint8_t* buffer, int len, SerialPrintf_t response_interface
|
||||
if (numscan == 2 && motor_number < num_motors) {
|
||||
set_current_setpoint(&motors[motor_number], current_feed_forward);
|
||||
}
|
||||
} else if(buffer[0] == 'e'){ // Generic ECHO command for testing
|
||||
} else if(buffer[0] == 'i'){ // Dump device info
|
||||
// Retrieves the device signature, revision, flash size, and UUID
|
||||
printf("Signature: %#x\n", STM_ID_GetSignature());
|
||||
printf("Revision: %#x\n", STM_ID_GetRevision());
|
||||
@@ -381,4 +381,4 @@ void usb_update_thread() {
|
||||
}
|
||||
}
|
||||
vTaskDelete(osThreadGetId());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user