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:
Philippe Teuwen 2013-02-21 22:35:00 +01:00
parent 9935095a36
commit 7af127ac0d

View file

@ -115,7 +115,7 @@ int main(int argc, const char *argv[])
add_history(cmd);
} else {
#endif //HAVE_READLINE
size_t n = 255;
size_t n = 512;
char *ret = NULL;
cmd = malloc(n);
printf("%s", prompt);
@ -155,7 +155,7 @@ int main(int argc, const char *argv[])
continue;
}
szTx = 0;
for (int i = 0; i < MAX_FRAME_LEN - 10; i++) {
for (int i = 0; i < MAX_FRAME_LEN; i++) {
int size;
unsigned int byte;
while (isspace(cmd[offset])) {