chg: save serial port name as copy.

This commit is contained in:
iceman1001 2019-05-07 15:40:01 +02:00
commit f2a954b422
3 changed files with 29 additions and 27 deletions

View file

@ -50,7 +50,7 @@ typedef struct {
// To memorise baudrate
uint32_t uart_speed;
uint16_t last_command;
uint8_t *serial_port_name;
uint8_t serial_port_name[FILE_PATH_SIZE];
} communication_arg_t;
extern communication_arg_t conn;
@ -63,7 +63,6 @@ void SendCommandMIX(uint64_t cmd, uint64_t arg0, uint64_t arg1, uint64_t arg2, v
void clearCommandBuffer(void);
#define FLASHMODE_SPEED 460800
void GetSavedSerialPortName( char **dest );
bool IsCommunicationThreadDead(void);
bool OpenProxmark(void *port, bool wait_for_port, int timeout, bool flash_mode, uint32_t speed);
int TestProxmark(void);