mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
fixed broken req/res
This commit is contained in:
parent
42bde2aa1e
commit
794b3451e4
|
@ -2580,6 +2580,11 @@ ipcRenderer.on("run-tnc-command", (event, arg) => {
|
||||||
if (arg.command == "requestUserInfo") {
|
if (arg.command == "requestUserInfo") {
|
||||||
sock.sendRequestInfo(arg.dxcallsign);
|
sock.sendRequestInfo(arg.dxcallsign);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (arg.command == "responseUserInfo") {
|
||||||
|
sock.sendResponseInfo(arg.dxcallsign, arg.userinfo);
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// IPC ACTION FOR AUTO UPDATER
|
// IPC ACTION FOR AUTO UPDATER
|
||||||
|
|
|
@ -713,7 +713,7 @@ exports.sendRequestInfo = function (dxcallsign) {
|
||||||
//Send station info response
|
//Send station info response
|
||||||
exports.sendResponseInfo = function (dxcallsign, userinfo) {
|
exports.sendResponseInfo = function (dxcallsign, userinfo) {
|
||||||
//Command 0 = user/station information
|
//Command 0 = user/station information
|
||||||
sendRequest(dxcallsign, 255, 1, userinfo, "res");
|
sendResponse(dxcallsign, 255, 1, userinfo, "res");
|
||||||
};
|
};
|
||||||
|
|
||||||
//STOP TRANSMISSION
|
//STOP TRANSMISSION
|
||||||
|
|
Loading…
Reference in a new issue