pm3_lib: load preferences file

This commit is contained in:
Philippe Teuwen 2024-10-14 18:36:54 +02:00
parent 50d9042a5c
commit 0c21da8be0

View file

@ -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");