summaryrefslogtreecommitdiffstats
path: root/pressure_control
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2008-10-26 15:37:18 +0100
committerMichael Buesch <mb@bu3sch.de>2008-10-26 15:37:18 +0100
commit435efeb81d6942cb2bfde17fbab8b4207371192b (patch)
tree8d6928a04081ca06ec34998ef64dc03b521cc9d8 /pressure_control
parent8421080c367083e01e07569d82ea4fe6f63cb86c (diff)
downloadcnc-435efeb81d6942cb2bfde17fbab8b4207371192b.tar.xz
cnc-435efeb81d6942cb2bfde17fbab8b4207371192b.zip
pressure_control: Fix sensor triggering
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Diffstat (limited to 'pressure_control')
-rw-r--r--pressure_control/firmware/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/pressure_control/firmware/main.c b/pressure_control/firmware/main.c
index fc16dad..cd29339 100644
--- a/pressure_control/firmware/main.c
+++ b/pressure_control/firmware/main.c
@@ -164,7 +164,7 @@ static void check_pressure(void)
valves_force_state(VALVES_IDLE);
}
}
-//FIXME remote_pressure_change_notification(state.mbar, cfg.hysteresis);
+ remote_pressure_change_notification(state.mbar, cfg.hysteresis);
}
int main(void)
@@ -199,6 +199,7 @@ int main(void)
check_pressure();
/* Trigger another measurement in 50 milliseconds. */
state.sensor_trigger_cnt = 50;
+ state.needs_checking = 0;
mb();
}
remote_work();
bues.ch cgit interface