mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07: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 "usart_defs.h"
|
||||||
#include "util_posix.h"
|
#include "util_posix.h"
|
||||||
#include "comms.h"
|
#include "comms.h"
|
||||||
|
#include "preferences.h"
|
||||||
|
|
||||||
pm3_device_t *pm3_open(const char *port) {
|
pm3_device_t *pm3_open(const char *port) {
|
||||||
pm3_init();
|
pm3_init();
|
||||||
|
preferences_load();
|
||||||
OpenProxmark(&g_session.current_device, port, false, 20, false, USART_BAUD_RATE);
|
OpenProxmark(&g_session.current_device, port, false, 20, false, USART_BAUD_RATE);
|
||||||
if (g_session.pm3_present && (TestProxmark(g_session.current_device) != PM3_SUCCESS)) {
|
if (g_session.pm3_present && (TestProxmark(g_session.current_device) != PM3_SUCCESS)) {
|
||||||
PrintAndLogEx(ERR, _RED_("ERROR:") " cannot communicate with the Proxmark3\n");
|
PrintAndLogEx(ERR, _RED_("ERROR:") " cannot communicate with the Proxmark3\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue