Commit 4101eb07 authored by Mikhail Karpenko's avatar Mikhail Karpenko

Turn fan on during start to set the driver to a known state

parent 9f23898a
# elphel-apps-tempmon
Temperature monitoring script
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<launchConfiguration type="org.eclipse.ui.externaltools.ProgramBuilderLaunchConfigurationType">
<booleanAttribute key="org.eclipse.debug.ui.ATTR_LAUNCH_IN_BACKGROUND" value="false"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_LOCATION" value="${workspace_loc:/elphel-apps-tempmon/run_bitbake.sh}"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_RUN_BUILD_KINDS" value="full,incremental,"/>
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS" value="apps-tempmon -c target_scp -f"/>
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
</launchConfiguration>
......@@ -2,7 +2,7 @@ PROGS =
PHPCLI =
CONFIGS =
SRCS = imgsrv.py
SRCS = tempmon.py
OBJS =
INSTALL = install
......
......@@ -224,6 +224,8 @@ if __name__ == "__main__":
out_path_pref = ""
tm = temp_monitor(ctrl_path_pref, ctrl_fn, hwmon_path_pref, hwmon_fn, out_path_pref, out_fn)
if tm.check_files():
# unconditionally turn the fan on to set the driver to a known state
tm.fan_ctrl("on")
tm.monitor()
else:
sys.exit(1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment