Skip to content

Commit

Permalink
tmc5160: csactual -> cs_actual
Browse files Browse the repository at this point in the history
Correct the name of "cs_actual" and correct the size on tmc5160.

Signed-off-by: Timofey Titovets <[email protected]>
Signed-off-by: Kevin O'Connor <[email protected]>
  • Loading branch information
nefelim4ag authored and rogerlz committed May 28, 2024
1 parent 7799a73 commit a1b2806
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion klippy/extras/tmc2240.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"s2vsb": 0x01 << 13,
"stealth": 0x01 << 14,
"fsactive": 0x01 << 15,
"csactual": 0x1F << 16,
"cs_actual": 0x1F << 16,
"stallguard": 0x01 << 24,
"ot": 0x01 << 25,
"otpw": 0x01 << 26,
Expand Down
3 changes: 2 additions & 1 deletion klippy/extras/tmc5160.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
"s2vsb": 0x01 << 13,
"stealth": 0x01 << 14,
"fsactive": 0x01 << 15,
"csactual": 0xFF << 16,
"cs_actual": 0x1F << 16,
"stallguard": 0x01 << 24,
"ot": 0x01 << 25,
"otpw": 0x01 << 26,
Expand All @@ -140,6 +140,7 @@
"stst": 0x01 << 31,
}
Fields["FACTORY_CONF"] = {"factory_conf": 0x1F << 0}
Fields["FACTORY_CONF"] = {"factory_conf": 0x1F << 0}
Fields["GCONF"] = {
"recalibrate": 0x01 << 0,
"faststandstill": 0x01 << 1,
Expand Down

0 comments on commit a1b2806

Please sign in to comment.