chg: 'hw connect' - make port optional. Reused previous serial port

This commit is contained in:
iceman1001
2019-05-07 11:42:36 +02:00
parent 61d250a7f8
commit fb7445a027
3 changed files with 22 additions and 19 deletions

View File

@@ -59,6 +59,10 @@ static uint64_t timeout_start_time;
static bool dl_it(uint8_t *dest, uint32_t bytes, uint32_t start_index, PacketResponseNG *response, size_t ms_timeout, bool show_warning, uint32_t rec_cmd);
void GetSavedSerialPortName( char **dest ) {
*dest = serial_port_name;
}
void SendCommand(PacketCommandOLD *c) {
#ifdef COMMS_DEBUG