deprecate user slicer compensation, in hindsight this is something that the ui shouldn't do
This commit is contained in:
parent
791938d733
commit
7a0848fa9f
@ -257,9 +257,6 @@ class KlipperScreenConfig:
|
|||||||
"value": "False", "callback": screen.reload_panels}},
|
"value": "False", "callback": screen.reload_panels}},
|
||||||
{"use_dpms": {"section": "main", "name": _("Screen DPMS"), "type": "binary",
|
{"use_dpms": {"section": "main", "name": _("Screen DPMS"), "type": "binary",
|
||||||
"value": "True", "callback": screen.set_dpms}},
|
"value": "True", "callback": screen.set_dpms}},
|
||||||
{"print_estimate_compensation": {
|
|
||||||
"section": "main", "name": _("Slicer Time correction (%)"), "type": "scale", "value": "100",
|
|
||||||
"range": [50, 150], "step": 1}},
|
|
||||||
{"autoclose_popups": {"section": "main", "name": _("Auto-close notifications"), "type": "binary",
|
{"autoclose_popups": {"section": "main", "name": _("Auto-close notifications"), "type": "binary",
|
||||||
"value": "True"}},
|
"value": "True"}},
|
||||||
{"show_heater_power": {"section": "main", "name": _("Show Heater Power"), "type": "binary",
|
{"show_heater_power": {"section": "main", "name": _("Show Heater Power"), "type": "binary",
|
||||||
|
@ -642,10 +642,9 @@ class JobStatusPanel(ScreenPanel):
|
|||||||
|
|
||||||
with contextlib.suppress(KeyError):
|
with contextlib.suppress(KeyError):
|
||||||
if self.file_metadata['estimated_time'] > 0:
|
if self.file_metadata['estimated_time'] > 0:
|
||||||
usrcomp = (self._config.get_config()['main'].getint('print_estimate_compensation', 100) / 100)
|
|
||||||
# speed_factor compensation based on empirical testing
|
# speed_factor compensation based on empirical testing
|
||||||
spdcomp = sqrt(self.speed_factor)
|
spdcomp = sqrt(self.speed_factor)
|
||||||
slicer_time = ((self.file_metadata['estimated_time'] * usrcomp) / spdcomp) + non_printing
|
slicer_time = ((self.file_metadata['estimated_time']) / spdcomp) + non_printing
|
||||||
self.labels["slicer_time"].set_label(self.format_time(slicer_time))
|
self.labels["slicer_time"].set_label(self.format_time(slicer_time))
|
||||||
|
|
||||||
with contextlib.suppress(Exception):
|
with contextlib.suppress(Exception):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user