pn53x-tamashell: allow larger commands up to full extended frame (264 bytes)
It was arbitrarily limited to MAX_FRAME_LEN-10 probably because of bug in LOG_HEX() fixed in previous commit
This commit is contained in:
parent
9935095a36
commit
7af127ac0d
1 changed files with 2 additions and 2 deletions
|
@ -115,7 +115,7 @@ int main(int argc, const char *argv[])
|
||||||
add_history(cmd);
|
add_history(cmd);
|
||||||
} else {
|
} else {
|
||||||
#endif //HAVE_READLINE
|
#endif //HAVE_READLINE
|
||||||
size_t n = 255;
|
size_t n = 512;
|
||||||
char *ret = NULL;
|
char *ret = NULL;
|
||||||
cmd = malloc(n);
|
cmd = malloc(n);
|
||||||
printf("%s", prompt);
|
printf("%s", prompt);
|
||||||
|
@ -155,7 +155,7 @@ int main(int argc, const char *argv[])
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
szTx = 0;
|
szTx = 0;
|
||||||
for (int i = 0; i < MAX_FRAME_LEN - 10; i++) {
|
for (int i = 0; i < MAX_FRAME_LEN; i++) {
|
||||||
int size;
|
int size;
|
||||||
unsigned int byte;
|
unsigned int byte;
|
||||||
while (isspace(cmd[offset])) {
|
while (isspace(cmd[offset])) {
|
||||||
|
|
Loading…
Reference in a new issue