fixed wrong dxgrid information

This commit is contained in:
dj2ls 2023-01-06 17:33:20 +01:00
parent 034577144b
commit 44395c32f4
3 changed files with 8 additions and 0 deletions

View file

@ -1400,6 +1400,12 @@ ipcRenderer.on('action-update-tnc-state', (event, arg) => {
document.title = documentTitle[0] + 'Call: ' + arg.mycallsign;
}
// update mygrid information with data from tnc
if (typeof(arg.mygrid) !== 'undefined') {
document.getElementById("myGrid").value = arq.mygrid;
}
// TOE TIME OF EXECUTION --> How many time needs a command to be executed until data arrives
// deactivated this feature, beacuse its useless at this time. maybe it is getting more interesting, if we are working via network

View file

@ -196,6 +196,7 @@ client.on('data', function(socketdata) {
let Data = {
mycallsign: data['mycallsign'],
mygrid: data['mygrid'],
ptt_state: data['ptt_state'],
busy_state: data['tnc_state'],
arq_state: data['arq_state'],

View file

@ -658,6 +658,7 @@ def send_tnc_state():
"beacon_state": str(static.BEACON_STATE),
"stations": [],
"mycallsign": str(static.MYCALLSIGN, encoding),
"mygrid": str(static.MYGRID, encoding),
"dxcallsign": str(static.DXCALLSIGN, encoding),
"dxgrid": str(static.DXGRID, encoding),
"hamlib_status": static.HAMLIB_STATUS,