mirror of
https://github.com/Klipper3d/klipper.git
synced 2026-01-06 23:07:44 -07:00
tmc2240: Add OTW_OV_VTH to FieldFormatters (#6987)
Some checks are pending
Build test / build (push) Waiting to run
Some checks are pending
Build test / build (push) Waiting to run
This register is readable and contains the overvoltage and overtemp threshold settings. Signed-off-by: Hendrik Poernama <poernahi@gmail.com>
This commit is contained in:
parent
2ddfa32dd8
commit
3b68769ea5
1 changed files with 3 additions and 0 deletions
|
|
@ -262,6 +262,9 @@ FieldFormatters.update({
|
|||
"adc_temp": (lambda v: "0x%04x(%.1fC)" % (v, ((v - 2038) / 7.7))),
|
||||
"adc_vsupply": (lambda v: "0x%04x(%.3fV)" % (v, v * 0.009732)),
|
||||
"adc_ain": (lambda v: "0x%04x(%.3fmV)" % (v, v * 0.3052)),
|
||||
"overvoltage_vth": (lambda v: "0x%04x(%.3fV)" % (v, v * 0.009732)),
|
||||
"overtempprewarning_vth": (lambda v:
|
||||
"0x%04x(%.1fC)" % (v, ((v - 2038) / 7.7))),
|
||||
})
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue