summaryrefslogtreecommitdiff
path: root/device-functions.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-09-07 10:27:31 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-09-07 10:27:31 -0400
commit959e1cf54cea0a3252c4852224a290c56c50df2a (patch)
tree4dd7bd4407e405ed3a2ead1fafe2fa8074db6c02 /device-functions.c
parentb9264ec05328aae8f29e56d945f5168848b89737 (diff)
style fixes
Diffstat (limited to 'device-functions.c')
-rw-r--r--device-functions.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/device-functions.c b/device-functions.c
index 6a54241..35c2662 100644
--- a/device-functions.c
+++ b/device-functions.c
@@ -4541,14 +4541,13 @@ void Main_update_shift_registers()
/* send MSB first, LSB last */
/* send highest # SR first */
- int store_trigger_mode[max_channels];
int i,j,n; /* counters */
char data_out;
int temp_output_state[max_channels];
/* suppress triggering during relay switching */
if ( globals.Registers.last_relay_driver_settings[0]!=globals.Registers.shift_reg_out[2]
- || globals.Registers.last_relay_driver_settings[1]!=globals.Registers.shift_reg_out[3]) {
+ || globals.Registers.last_relay_driver_settings[1]!=globals.Registers.shift_reg_out[3]) {
start_gate_override ();
}
@@ -4563,7 +4562,7 @@ void Main_update_shift_registers()
}
bus_setpin(out_CLOCK_LINE, 1);
- bus_setpin(out_STROBE_LINE, 0);
+ bus_setpin(out_STROBE_LINE, 0);
for (i=(num_out_SRs-1); i>=0; --i) {
switch (i) {
@@ -4598,8 +4597,8 @@ void Main_update_shift_registers()
/* keep trigger suppressed for a time (normally 5ms) after a relay update */
if ( globals.Registers.last_relay_driver_settings[0]!=globals.Registers.shift_reg_out[2]
- || globals.Registers.last_relay_driver_settings[1]!=globals.Registers.shift_reg_out[3]
- || globals.Flags.force_output_fully_off==YES) {
+ || globals.Registers.last_relay_driver_settings[1]!=globals.Registers.shift_reg_out[3]
+ || globals.Flags.force_output_fully_off==YES) {
g_usleep (1e3 * globals.Timers.Relay_Switching_Delay_in_Milliseconds);
}