Skip to content

Commit

Permalink
Typo fix: SWAP16 was missing on some write_ad5663() calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbogdan committed Sep 14, 2015
1 parent 098f475 commit 29c97e7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Binary file modified m1000.bin
Binary file not shown.
4 changes: 2 additions & 2 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 29c97e7

Please sign in to comment.