mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-15 06:09:13 +08:00
pm3_lib: load preferences file
This commit is contained in:
parent
50d9042a5c
commit
0c21da8be0
1 changed files with 2 additions and 0 deletions
|
@ -26,9 +26,11 @@
|
|||
#include "usart_defs.h"
|
||||
#include "util_posix.h"
|
||||
#include "comms.h"
|
||||
#include "preferences.h"
|
||||
|
||||
pm3_device_t *pm3_open(const char *port) {
|
||||
pm3_init();
|
||||
preferences_load();
|
||||
OpenProxmark(&g_session.current_device, port, false, 20, false, USART_BAUD_RATE);
|
||||
if (g_session.pm3_present && (TestProxmark(g_session.current_device) != PM3_SUCCESS)) {
|
||||
PrintAndLogEx(ERR, _RED_("ERROR:") " cannot communicate with the Proxmark3\n");
|
||||
|
|
Loading…
Reference in a new issue