mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-07-16 10:03:04 -07:00
experimental_lib/example_c port as arg
This commit is contained in:
parent
3cb023f560
commit
a42cb6dea1
4 changed files with 18 additions and 5 deletions
|
@ -1,8 +1,14 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "pm3.h"
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
if (argc < 2) {
|
||||
printf("Usage: %s <port>\n", argv[0]);
|
||||
exit(-1);
|
||||
}
|
||||
pm3 *p;
|
||||
p = pm3_open("/dev/ttyACM0");
|
||||
p = pm3_open(argv[1]);
|
||||
pm3_console(p, "hw status");
|
||||
pm3_close(p);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue