Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
86b7fd9a
Commit
86b7fd9a
authored
Mar 12, 2010
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bug in MBSlave initialization..
parent
6533948c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
libuniset.spec
conf/libuniset.spec
+4
-1
MBSlave.cc
extensions/ModbusSlave/MBSlave.cc
+2
-2
No files found.
conf/libuniset.spec
View file @
86b7fd9a
...
...
@@ -3,7 +3,7 @@
Name: libuniset
Version: 0.97
Release: eter5
5
Release: eter5
6
Summary: UniSet - library for building distributed industrial control systems
License: GPL
Group: Development/C++
...
...
@@ -183,6 +183,9 @@ rm -f %buildroot%_libdir/*.la
%exclude %_pkgconfigdir/libUniSet.pc
%changelog
* Fri Mar 12 2010 Pavel Vainerman <pv@altlinux.ru> 0.97-eter55
- new build
* Sat Feb 13 2010 Pavel Vainerman <pv@altlinux.ru> 0.97-eter54
- fixed bug in codegen
...
...
extensions/ModbusSlave/MBSlave.cc
View file @
86b7fd9a
...
...
@@ -101,7 +101,7 @@ prefix(prefix)
{
string
iaddr
=
conf
->
getArgParam
(
"--"
+
prefix
+
"-inet-addr"
,
it
.
getProp
(
"iaddr"
));
if
(
iaddr
.
empty
()
)
throw
UniSetTypes
::
SystemError
(
myname
+
"(MBSlave): Unknown TCP server address. Use: --
mbs
-inet-addr [ XXX.XXX.XXX.XXX| hostname ]"
);
throw
UniSetTypes
::
SystemError
(
myname
+
"(MBSlave): Unknown TCP server address. Use: --
prefix
-inet-addr [ XXX.XXX.XXX.XXX| hostname ]"
);
int
port
=
conf
->
getArgPInt
(
"--"
+
prefix
+
"-inet-port"
,
it
.
getProp
(
"iport"
),
502
);
...
...
@@ -816,7 +816,7 @@ MBSlave* MBSlave::init_mbslave( int argc, const char* const* argv, UniSetTypes::
}
dlog
[
Debug
::
INFO
]
<<
"(mbslave): name = "
<<
name
<<
"("
<<
ID
<<
")"
<<
endl
;
return
new
MBSlave
(
ID
,
icID
,
ic
);
return
new
MBSlave
(
ID
,
icID
,
ic
,
prefix
);
}
// -----------------------------------------------------------------------------
std
::
ostream
&
operator
<<
(
std
::
ostream
&
os
,
MBSlave
::
IOProperty
&
p
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment