1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2024-07-05 04:09:29 +03:00

tools/atrf-xmit/atrf-xmit.c: corrected title comment

This commit is contained in:
Werner Almesberger 2011-06-20 17:53:56 -03:00
parent 668d8c61cf
commit 106ef7ff7f
3 changed files with 3 additions and 3 deletions

View File

@ -169,7 +169,7 @@ static int cmd_more(struct atrf_dsc *dsc, struct netio *netio, const char *cmd)
return netio_printf(netio, "+0x%02x\n", res); return netio_printf(netio, "+0x%02x\n", res);
} }
if (!strcasecmp(cmd, "wait")) { if (!strcasecmp(cmd, "wait")) {
uint8_t res; int res;
if (!n) if (!n)
n = 1; n = 1;

View File

@ -1,5 +1,5 @@
/* /*
* atrf-ber/atrf-ber.c - Fast transmission test * atrf-xmit/atrf-xmit.c - Fast transmission test
* *
* Written 2011 by Werner Almesberger * Written 2011 by Werner Almesberger
* Copyright 2011 Werner Almesberger * Copyright 2011 Werner Almesberger

View File

@ -474,7 +474,7 @@ int atnet_interrupt_wait(void *handle, int timeout_ms)
if (dialog(dsc, "WAIT %d", timeout_ms) < 0) if (dialog(dsc, "WAIT %d", timeout_ms) < 0)
return 0; return 0;
value = strtoul(dsc->reply+1, &end, 0); value = strtoul(dsc->reply+1, &end, 0);
if (*end || value > 1) { if (*end || value > 0xff) {
fprintf(stderr, "invalid response \"%s\"\n", dsc->reply+1); fprintf(stderr, "invalid response \"%s\"\n", dsc->reply+1);
dsc->error = 1; dsc->error = 1;
return 0; return 0;