Skip to content

Commit

Permalink
removed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoegenburg committed Feb 21, 2024
1 parent 986661d commit 4aec9d3
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 @@ -315,9 +315,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); // should be GlobalScalar
auto ret = read_register<GConfig>(data);
if (ret.has_value()) {
_registers.gconfig = ret.value(); // should be glob_scale
_registers.gconfig = ret.value();
}
}

Expand Down

0 comments on commit 4aec9d3

Please sign in to comment.