Detect NAK replies.
This commit is contained in:
parent
b12e0f5ddb
commit
eff1148348
5
fet.c
5
fet.c
|
@ -305,6 +305,11 @@ static int parse_packet(int plen)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (type == PTYPE_NAK) {
|
||||||
|
fprintf(stderr, "fet: FET returned NAK\n");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
/* Parse packet parameters */
|
/* Parse packet parameters */
|
||||||
if (type == PTYPE_PARAM || type == PTYPE_MIXED) {
|
if (type == PTYPE_PARAM || type == PTYPE_MIXED) {
|
||||||
int j;
|
int j;
|
||||||
|
|
Loading…
Reference in New Issue