diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-10-16 15:53:18 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-10-16 15:53:18 -0400 |
commit | 2d7d559d9536551dd21e116fe9c3806b8d72f690 (patch) | |
tree | bf7d9d720c382a836542d07711d6dfc7dcfcc881 /device-functions.c | |
parent | 988410d28b07ad3d6e2bb8747e34e123a3ea38ce (diff) |
reset update_ vars when updating shift registers
Diffstat (limited to 'device-functions.c')
-rw-r--r-- | device-functions.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/device-functions.c b/device-functions.c index 0800acf..a9fc638 100644 --- a/device-functions.c +++ b/device-functions.c @@ -4543,6 +4543,12 @@ void Main_update_shift_registers() /* save relay data for comparision next time */ 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]; + + // reset update sensors + globals.Changes.update_os = 0; + globals.Changes.update_amp = 0; + globals.Changes.update_zout = 0; + globals.Changes.update_load = 0; } |