summaryrefslogtreecommitdiff
path: root/device-functions.c
diff options
context:
space:
mode:
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);
}