projects
/
proxmark3-svn
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
FIX: LF TI WRITE inparameters didn't get copied by sscanf. This removes the "PRIu64...
[proxmark3-svn]
/
client
/
flasher.c
diff --git
a/client/flasher.c
b/client/flasher.c
index 652f13b1111df6078e89856f48e7f718d86ace72..c273c1f383b759c76a008669d91f1300c30134e7 100644
(file)
--- a/
client/flasher.c
+++ b/
client/flasher.c
@@
-52,11
+52,8
@@
void ReceiveCommand(UsbCommand* rxcmd) {
while (true) {
rxlen = sizeof(UsbCommand) - (prx-prxcmd);
if (uart_receive(sp,prx,&rxlen)) {
while (true) {
rxlen = sizeof(UsbCommand) - (prx-prxcmd);
if (uart_receive(sp,prx,&rxlen)) {
-// printf("received [%zd] bytes\n",rxlen);
prx += rxlen;
if ((prx-prxcmd) >= sizeof(UsbCommand)) {
prx += rxlen;
if ((prx-prxcmd) >= sizeof(UsbCommand)) {
-// printf("received: ");
-// cmd_debug(rxcmd);
return;
}
}
return;
}
}
@@
-128,8
+125,7
@@
int main(int argc, char **argv)
serial_port_name = argv[1];
serial_port_name = argv[1];
- fprintf(stderr,"Waiting for Proxmark to appear on ");
- fprintf(stderr,serial_port_name);
+ fprintf(stderr,"Waiting for Proxmark to appear on %s",serial_port_name);
do {
sleep(1);
fprintf(stderr, ".");
do {
sleep(1);
fprintf(stderr, ".");
Impressum
,
Datenschutz