tmc2660: Report SE in DUMP_TMC even if zero

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2021-03-16 11:30:50 -04:00
parent 6ebdc48b7c
commit 3f04238e79
1 changed files with 3 additions and 2 deletions

View File

@ -100,9 +100,10 @@ FieldFormatters = dict(tmc2130.FieldFormatters)
FieldFormatters.update({ FieldFormatters.update({
"DEDGE": (lambda v: "1(Both Edges Active!)" if v else ""), "DEDGE": (lambda v: "1(Both Edges Active!)" if v else ""),
"CHM": (lambda v: "1(constant toff)" if v else "0(spreadCycle)"), "CHM": (lambda v: "1(constant toff)" if v else "0(spreadCycle)"),
"VSENSE": (lambda v: "%d(%dmV)" % (v, 165 if v else 305)), "VSENSE": (lambda v: "1(165mV)" if v else "0(305mV)"),
"SDOFF": (lambda v: "1(Step/Dir disabled!)" if v else ""), "SDOFF": (lambda v: "1(Step/Dir disabled!)" if v else ""),
"DISS2G": (lambda v: "%d(Short to GND disabled!)" if v else ""), "DISS2G": (lambda v: "1(Short to GND disabled!)" if v else ""),
"SE": (lambda v: ("%d" % v) if v else "0(Reset?)"),
}) })