mirror of
git://projects.qi-hardware.com/ben-wpan.git
synced 2025-01-09 01:10:16 +02:00
tools/atrf-xmit/atrf-xmit.c: corrected title comment
This commit is contained in:
parent
668d8c61cf
commit
106ef7ff7f
@ -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);
|
||||
}
|
||||
if (!strcasecmp(cmd, "wait")) {
|
||||
uint8_t res;
|
||||
int res;
|
||||
|
||||
if (!n)
|
||||
n = 1;
|
||||
|
@ -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
|
||||
* Copyright 2011 Werner Almesberger
|
||||
|
@ -474,7 +474,7 @@ int atnet_interrupt_wait(void *handle, int timeout_ms)
|
||||
if (dialog(dsc, "WAIT %d", timeout_ms) < 0)
|
||||
return 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);
|
||||
dsc->error = 1;
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user