Skip to content

Commit

Permalink
fixed 2160 motor driver register name usage (#755)
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoegenburg authored Feb 21, 2024
1 parent 65d6a31 commit 128b936
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/motor-control/core/stepper_motor/tmc2160_driver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,9 @@ class TMC2160 {
* be read, so this function gets it from the actual device.
*/
auto update_glob_scaler(uint32_t data) -> void {
auto ret = read_register<GConfig>(data);
auto ret = read_register<GlobalScaler>(data);
if (ret.has_value()) {
_registers.gconfig = ret.value();
_registers.glob_scale = ret.value();
}
}

Expand Down

0 comments on commit 128b936

Please sign in to comment.