summaryrefslogtreecommitdiff
path: root/instr-daemon.c
diff options
context:
space:
mode:
authorMike <mjc@avtechpulse.com>2000-01-01 00:44:46 +0900
committerMike <mjc@avtechpulse.com>2000-01-01 00:44:46 +0900
commiteef22577a3efcb2e37f27d3cd0104c1bf2835539 (patch)
tree182f9dd74710c24a4eddc858c3a5f5eb7ac2fbea /instr-daemon.c
parent5fb7eccd0d238a976758dd1e33ef18931b83b91f (diff)
expansion DACs default to zero at power-up
Diffstat (limited to 'instr-daemon.c')
-rw-r--r--instr-daemon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/instr-daemon.c b/instr-daemon.c
index 45ba979..24ca15b 100644
--- a/instr-daemon.c
+++ b/instr-daemon.c
@@ -244,10 +244,12 @@ int main(int argc, char **argv)
int i;
for (i=0; i<std_dacs; i++) {
+ // on-board DACs have configurable default values
set_dac(i,globals.Flash.initial_dac_settings[i]);
}
for (i=std_dacs; i<max_dacs; i++) {
- set_dac(i,dac_max/8);
+ // expansion DACs default to zero at power-up
+ set_dac(i,0);
}
fixFlash(&globals.Flash);