summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--device-functions.c2
-rw-r--r--flash.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/device-functions.c b/device-functions.c
index 1e7ac25..0dd840b 100644
--- a/device-functions.c
+++ b/device-functions.c
@@ -811,7 +811,7 @@ int Set_Delay(int check_possible_only,int word_override,int range_override,int c
}
if (channel==1) {
- control_pcb107(Flash.I2C_port_for_CH2_delay,globals.Flash.delay_dac[channel],word_out,relay_range);
+ control_pcb107(globals.Flash.I2C_port_for_CH2_delay,globals.Flash.delay_dac[channel],word_out,relay_range);
}
globals.ChannelState[channel].delay=set_delay;
diff --git a/flash.c b/flash.c
index 3282338..1484bb2 100644
--- a/flash.c
+++ b/flash.c
@@ -1,5 +1,6 @@
#include "globals.h"
#include "lcd.h"
+#include "i2c.h"
#include "version.h"
#include "flash.h"
#include <stdint.h>