summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-07-30 10:26:42 +0000
committer(no author) <(no author)@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2006-07-30 10:26:42 +0000
commit74418f87ad5af3387c37495cae1b3e3d77d53de1 (patch)
tree34bc0746ba4ed655838d4290c820dd4c9ad7c625
parente0649fea813b857dde4cfac9e9d08c0d40023a81 (diff)
new usb protocol doesn't give feedback for write commands
git-svn-id: https://svn.openpcd.org:2342/trunk@67 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
-rw-r--r--openpcd/opcd_test/opcd_test.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/openpcd/opcd_test/opcd_test.c b/openpcd/opcd_test/opcd_test.c
index 57e5953..6b99792 100644
--- a/openpcd/opcd_test/opcd_test.c
+++ b/openpcd/opcd_test/opcd_test.c
@@ -225,7 +225,6 @@ int main(int argc, char **argv)
exit(2);
printf("setting LED %d to %s\n", i, j ? "on" : "off");
opcd_send_command(OPENPCD_CMD_SET_LED, i, j, 0, NULL);
- opcd_recv_reply();
break;
case 'r':
if (get_number(optarg, 0x00, OPENPCD_REG_MAX, &i) < 0)
@@ -245,7 +244,6 @@ int main(int argc, char **argv)
}
fprintf(stdout, "setting register 0x%02x to 0x%02x\n", i, j);
opcd_send_command(OPENPCD_CMD_WRITE_REG, i, j, 0, NULL);
- opcd_recv_reply();
break;
case 'R':
if (get_number(optarg, 0x00, OPENPCD_REG_MAX, &i) < 0)
@@ -262,7 +260,6 @@ int main(int argc, char **argv)
if (get_number(argv[optind], 0x00, 0xff, &j) < 0)
exit(2);
opcd_send_command(OPENPCD_CMD_REG_BITS_SET, i, j, 0, NULL);
- opcd_recv_reply();
break;
case 'c':
if (get_number(optarg, 0x00, OPENPCD_REG_MAX, &i) < 0)
@@ -270,7 +267,6 @@ int main(int argc, char **argv)
if (get_number(argv[optind], 0x00, 0xff, &j) < 0)
exit(2);
opcd_send_command(OPENPCD_CMD_REG_BITS_CLEAR, i, j, 0, NULL);
- opcd_recv_reply();
break;
case 'h':
case '?':
personal git repositories of Harald Welte. Your mileage may vary