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

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

parent 9f23898a
Loading
Loading
Loading
Loading

README.md

0 → 100644
+2 −0
Original line number Diff line number Diff line
# elphel-apps-tempmon
Temperature monitoring script
+8 −0
Original line number Diff line number Diff line
<?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>
+3 −3
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ PROGS =
PHPCLI     =
CONFIGS    =

SRCS = imgsrv.py
SRCS       = tempmon.py
OBJS       =

INSTALL    = install
+2 −0
Original line number Diff line number Diff line
@@ -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)