aboutsummaryrefslogtreecommitdiffstats
path: root/ncpd/linkchan.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ncpd/linkchan.cc')
-rw-r--r--ncpd/linkchan.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/ncpd/linkchan.cc b/ncpd/linkchan.cc
index b95ec64..850b959 100644
--- a/ncpd/linkchan.cc
+++ b/ncpd/linkchan.cc
@@ -26,12 +26,15 @@
#include <string>
#include "linkchan.h"
+#include "ncp.h"
#include "bufferstore.h"
#include "bufferarray.h"
-linkChan::linkChan(ncp * _ncpController):channel(_ncpController)
+linkChan::linkChan(ncp * _ncpController, int _ncpChannel):channel(_ncpController)
{
registerSer = 0x1234;
+ if (_ncpChannel != -1)
+ setNcpChannel(_ncpChannel);
ncpConnect();
}