aboutsummaryrefslogtreecommitdiff
path: root/projects/cli-test
diff options
context:
space:
mode:
authorPaul Selkirk <paul@psgd.org>2019-04-03 17:41:10 -0400
committerPaul Selkirk <paul@psgd.org>2019-04-03 17:41:10 -0400
commita590fe12485603003101b5a4ba2f616083d040f4 (patch)
tree36819a49c479e2d4d37005902ab2f87a2015839a /projects/cli-test
parent9006c25bd73c00ff861cccbce4595e6c932f4ace (diff)
parent624527539a83dbfd0dc2f03fda1cff14a1669811 (diff)
Merge branch 'fmc_clk_60mhz' to 'master'
Diffstat (limited to 'projects/cli-test')
-rw-r--r--projects/cli-test/test-fmc.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/projects/cli-test/test-fmc.c b/projects/cli-test/test-fmc.c
index 6773cfc..d9b0c9b 100644
--- a/projects/cli-test/test-fmc.c
+++ b/projects/cli-test/test-fmc.c
@@ -80,16 +80,8 @@ static int _write_then_read(struct cli_def *cli, uint32_t addr, uint32_t write_b
{
int ok;
- ok = fmc_write_32(addr, write_buf);
- if (ok != 0) {
- cli_print(cli, "FMC write failed: 0x%x", ok);
- return 0;
- }
- ok = fmc_read_32(0, read_buf);
- if (ok != 0) {
- cli_print(cli, "FMC read failed: 0x%x", ok);
- return 0;
- }
+ fmc_write_32(addr, write_buf);
+ fmc_read_32(0, read_buf);
return 1;
}