aboutsummaryrefslogtreecommitdiff
path: root/aepd/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'aepd/main.c')
-rw-r--r--aepd/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/aepd/main.c b/aepd/main.c
index 3b5ea21..3a45e5d 100644
--- a/aepd/main.c
+++ b/aepd/main.c
@@ -296,6 +296,12 @@ int main(int argc, char *argv[])
if (aepd_shared->stop_flag)
goto done;
+ if (aepd_shared->zero) {
+ fprintf(stderr, "setting az in libaep thread\n");
+ aep_context.aepd_interface->auto_zero = 2;
+ aepd_shared->zero = 0;
+ }
+
/*
* we have the next result in aepd_interface_result..
* voltage and current per channel