mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
pm3_lib: load preferences file
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user