From 2d7d559d9536551dd21e116fe9c3806b8d72f690 Mon Sep 17 00:00:00 2001 From: "Michael J. Chudobiak" Date: Tue, 16 Oct 2012 15:53:18 -0400 Subject: reset update_ vars when updating shift registers --- device-functions.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'device-functions.c') 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; } -- cgit