summaryrefslogtreecommitdiffstats
path: root/pressure_control/firmware/main.c
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2009-04-10 17:24:10 +0200
committerMichael Buesch <mb@bu3sch.de>2009-04-10 17:24:10 +0200
commitc5b64ff2f10046b5c82b55e12a13b7bdad62c5c1 (patch)
tree8ef111c0ff769bfeb5ce643a9e1ab3ed6539514e /pressure_control/firmware/main.c
parent75a29d4d986e32bd82bc6468bba11567932a5349 (diff)
downloadcnc-c5b64ff2f10046b5c82b55e12a13b7bdad62c5c1.tar.xz
cnc-c5b64ff2f10046b5c82b55e12a13b7bdad62c5c1.zip
pressure_control: Refetch the state, if the device rebooted.
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Diffstat (limited to 'pressure_control/firmware/main.c')
-rw-r--r--pressure_control/firmware/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pressure_control/firmware/main.c b/pressure_control/firmware/main.c
index 7cf98f4..c5f8498 100644
--- a/pressure_control/firmware/main.c
+++ b/pressure_control/firmware/main.c
@@ -181,6 +181,8 @@ int main(void)
sei();
print("Monitoring...\n");
+ remote_work();
+ remote_notify_restart();
while (1) {
mb();
if (state.sensor_trigger_cnt == 0) {
bues.ch cgit interface