it sendImageMtd(port, data, baudrate,
                    (err) => {
                        showError(err);
                        console.log(err);
                    },
                    (byteTransfered) => {
                        const perc = (byteTransfered/data.length) * 100;
                        const percTrunc = Math.trunc(perc*100)/100;  /* Two decimal trunc */
                        flashProgress.value = perc;
                        loading(`Image transfer: ${percTrunc}% complete`)
    