diff --git a/Makefile b/Makefile index f391337..d3d3ee4 100644 --- a/Makefile +++ b/Makefile @@ -16,5 +16,5 @@ GIT_VERSION=$(shell git describe --always --dirty='*') include asf/sam/utils/make/Makefile.sam.in cflags-gnu-y += -D'HW_VERSION=$(HW_VERSION)' -cflags-gnu-y += -D'FW_VERSION=2.01' +cflags-gnu-y += -D'FW_VERSION=2.02' diff --git a/m1000.bin b/m1000.bin index 3fbe641..752f4a5 100755 Binary files a/m1000.bin and b/m1000.bin differ diff --git a/src/main.c b/src/main.c index e86dc2b..3311678 100644 --- a/src/main.c +++ b/src/main.c @@ -439,8 +439,8 @@ int main(void) udc_start(); cpu_delay_us(10, F_CPU); udc_attach(); - write_ad5663(0, def_data[i0_dac]); - write_ad5663(1, def_data[i0_dac]); + write_ad5663(0, SWAP16(def_data[i0_dac])); + write_ad5663(1, SWAP16(def_data[i0_dac])); // set pots for a sensible default cpu_delay_us(100, F_CPU); write_ad5122(0, def_data[p1_simv], def_data[p2_simv]);