summaryrefslogtreecommitdiffstats
path: root/pressure_control/firmware/main.c
diff options
context:
space:
mode:
authorMichael Buesch <mb@bu3sch.de>2010-06-13 22:18:57 +0200
committerMichael Buesch <mb@bu3sch.de>2010-06-13 22:18:57 +0200
commit64e774876f2c689583d31f8f67bd696ba9a9d1a7 (patch)
tree78c7bc70af839c4dae395aa09039634e3fe3cd67 /pressure_control/firmware/main.c
parent2aff70cc25aaea697a29c746677c2e3d68b65b41 (diff)
downloadcnc-64e774876f2c689583d31f8f67bd696ba9a9d1a7.tar.xz
cnc-64e774876f2c689583d31f8f67bd696ba9a9d1a7.zip
pressure_control: Don't allow changing parameters on disabled device
Signed-off-by: Michael Buesch <mb@bu3sch.de>
Diffstat (limited to 'pressure_control/firmware/main.c')
-rw-r--r--pressure_control/firmware/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/pressure_control/firmware/main.c b/pressure_control/firmware/main.c
index 177adef..8e824d4 100644
--- a/pressure_control/firmware/main.c
+++ b/pressure_control/firmware/main.c
@@ -289,6 +289,11 @@ void prepare_shutdown(void)
state.device_enabled = 0;
}
+bool device_is_enabled(void)
+{
+ return state.device_enabled;
+}
+
int main(void)
{
uint8_t mcucsr;
bues.ch cgit interface