Ignoring the option to sudo.

This commit is contained in:
Keir Rice
2022-09-25 19:24:28 +13:00
parent 3491f07e38
commit 95b33db84d

View File

@@ -1144,8 +1144,8 @@ class EnclosurePlugin(octoprint.plugin.StartupPlugin, octoprint.plugin.TemplateP
try:
script = os.path.dirname(os.path.realpath(__file__)) + "/SHTC3.py"
cmd = [sys.executable, script, str(i2cbus), str(address)]
if self._settings.get(["use_sudo"]):
cmd.insert(0, "sudo")
# if self._settings.get(["use_sudo"]):
# cmd.insert(0, "sudo")
if self._settings.get(["debug_temperature_log"]) is True:
self._logger.debug("Temperature SHTC3 cmd: %s", " ".join(cmd))