From 151780c43a12a06a8daa227b649043654336b615 Mon Sep 17 00:00:00 2001 From: ks6n19 <ks6n19@soton.ac.uk> Date: Sat, 8 Aug 2020 20:37:41 +0100 Subject: [PATCH] Update main.c with out regs incrementing as 0, 2, 4, 6 --- software/code/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/software/code/main.c b/software/code/main.c index 6b1baaf..8dac712 100644 --- a/software/code/main.c +++ b/software/code/main.c @@ -33,17 +33,17 @@ void write_out_0(uint32_t value_0) { } void write_out_1(uint32_t value_1) { - OUT_REGS[1] = value_1; + OUT_REGS[2] = value_1; } void write_out_2(uint32_t value_2) { - OUT_REGS[2] = value_2; + OUT_REGS[4] = value_2; } void write_out_3(uint32_t value_3) { - OUT_REGS[3] = value_3; + OUT_REGS[6] = value_3; } void set_out_invalid(void) { -- GitLab