Commit 7af127ac authored by Philippe Teuwen's avatar Philippe Teuwen

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
parent 9935095a
......@@ -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])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment