From 53aefc0f80e0b0e32a2c37da357c8703e690fdb0 Mon Sep 17 00:00:00 2001 From: dj2ls Date: Mon, 10 Jan 2022 18:09:38 +0100 Subject: [PATCH] send end of transmission frame closes #113 --- gui/preload-main.js | 10 +++++++++- gui/src/index.html | 9 +++++++++ tnc/data_handler.py | 33 ++++++++++++++++++++++++++++++++- tnc/sock.py | 1 + 4 files changed, 51 insertions(+), 2 deletions(-) diff --git a/gui/preload-main.js b/gui/preload-main.js index 8a7f2873..c80a9fba 100644 --- a/gui/preload-main.js +++ b/gui/preload-main.js @@ -909,7 +909,15 @@ ipcRenderer.on('action-update-tnc-state', (event, arg) => { var toastDATACHANNELreceivedopener = document.getElementById('toastDATACHANNELreceivedopener') var toast = bootstrap.Toast.getOrCreateInstance(toastDATACHANNELreceivedopener) // Returns a Bootstrap toast instance toast.show() - } + } + // TRANSMISSION STOPPED + if (arg.info[i] == "TRANSMISSION;STOPPED"){ + var toastDATACHANNELreceivedopener = document.getElementById('toastTRANSMISSIONstopped') + var toast = bootstrap.Toast.getOrCreateInstance(toastDATACHANNELreceivedopener) // Returns a Bootstrap toast instance + toast.show() + } + + // DATACHANNEL FAILED TOAST if (arg.info[i] == "DATACHANNEL;FAILED"){ var toastDATACHANNELfailed = document.getElementById('toastDATACHANNELfailed') diff --git a/gui/src/index.html b/gui/src/index.html index b0498d1d..4072fdbc 100644 --- a/gui/src/index.html +++ b/gui/src/index.html @@ -143,6 +143,15 @@ + + + +