#!/bin/bash

# Get the directory where the script is running.
DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )

binfile="$1"
com_port="$2"
echo Uploading file : ${binfile}
echo Com port : ${com_port}
 

"$DIR/hid_flash/tkg-flash" ${binfile} -p={$com_port} -ide -info

