Skip to content

Commit

Permalink
Change log level to verbose for TMC register dump
Browse files Browse the repository at this point in the history
This makes it easier to use debug level for homing.
  • Loading branch information
MitchBradley committed Aug 6, 2023
1 parent fc50c1e commit 8d90bff
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions FluidNC/src/Motors/TMC2209Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ namespace MotorDrivers {
}

// dump the registers. This is helpful for people migrating to the Pro version
log_debug("CHOPCONF: 0x" << to_hex(tmc2209->CHOPCONF()));
log_debug("COOLCONF: 0x" << to_hex(tmc2209->COOLCONF()));
log_debug("TPWMTHRS: 0x" << to_hex(tmc2209->TPWMTHRS()));
log_debug("TCOOLTHRS: 0x" << to_hex(tmc2209->TCOOLTHRS()));
log_debug("GCONF: 0x" << to_hex(tmc2209->GCONF()));
log_debug("PWMCONF: 0x" << to_hex(tmc2209->PWMCONF()));
log_debug("IHOLD_IRUN: 0x" << to_hex(tmc2209->IHOLD_IRUN()));
log_verbose("CHOPCONF: 0x" << to_hex(tmc2209->CHOPCONF()));
log_verbose("COOLCONF: 0x" << to_hex(tmc2209->COOLCONF()));
log_verbose("TPWMTHRS: 0x" << to_hex(tmc2209->TPWMTHRS()));
log_verbose("TCOOLTHRS: 0x" << to_hex(tmc2209->TCOOLTHRS()));
log_verbose("GCONF: 0x" << to_hex(tmc2209->GCONF()));
log_verbose("PWMCONF: 0x" << to_hex(tmc2209->PWMCONF()));
log_verbose("IHOLD_IRUN: 0x" << to_hex(tmc2209->IHOLD_IRUN()));

_cs_pin.synchronousWrite(false);
}
Expand Down
14 changes: 7 additions & 7 deletions FluidNC/src/Motors/TMC5160Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ namespace MotorDrivers {
}
}
// dump the registers. This is helpful for people migrating to the Pro version
log_debug("CHOPCONF: 0x" << to_hex(tmc5160->CHOPCONF()));
log_debug("COOLCONF: 0x" << to_hex(tmc5160->COOLCONF()));
log_debug("THIGH: 0x" << to_hex(tmc5160->THIGH()));
log_debug("TCOOLTHRS: 0x" << to_hex(tmc5160->TCOOLTHRS()));
log_debug("GCONF: 0x" << to_hex(tmc5160->GCONF()));
log_debug("PWMCONF: 0x" << to_hex(tmc5160->PWMCONF()));
log_debug("IHOLD_IRUN: 0x" << to_hex(tmc5160->IHOLD_IRUN()));
log_verbose("CHOPCONF: 0x" << to_hex(tmc5160->CHOPCONF()));
log_verbose("COOLCONF: 0x" << to_hex(tmc5160->COOLCONF()));
log_verbose("THIGH: 0x" << to_hex(tmc5160->THIGH()));
log_verbose("TCOOLTHRS: 0x" << to_hex(tmc5160->TCOOLTHRS()));
log_verbose("GCONF: 0x" << to_hex(tmc5160->GCONF()));
log_verbose("PWMCONF: 0x" << to_hex(tmc5160->PWMCONF()));
log_verbose("IHOLD_IRUN: 0x" << to_hex(tmc5160->IHOLD_IRUN()));
}

// Report diagnostic and tuning info
Expand Down

0 comments on commit 8d90bff

Please sign in to comment.