From 4aec9d300549d9e76deab465930df98d62df82a7 Mon Sep 17 00:00:00 2001 From: pmoegenburg Date: Tue, 20 Feb 2024 21:03:29 -0500 Subject: [PATCH] removed comments --- include/motor-control/core/stepper_motor/tmc2160_driver.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/motor-control/core/stepper_motor/tmc2160_driver.hpp b/include/motor-control/core/stepper_motor/tmc2160_driver.hpp index 5fde77f07..4c4763a24 100644 --- a/include/motor-control/core/stepper_motor/tmc2160_driver.hpp +++ b/include/motor-control/core/stepper_motor/tmc2160_driver.hpp @@ -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(data); // should be GlobalScalar + auto ret = read_register(data); if (ret.has_value()) { - _registers.gconfig = ret.value(); // should be glob_scale + _registers.gconfig = ret.value(); } }