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
bf7aa387
Commit
bf7aa387
authored
Jun 26, 2013
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(ModbustMaster): исправил обработку --xxx-set-prop-prefix,
а также исправил ошибку в help.
parent
23862161
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
MBTCPMaster.cc
extensions/ModbusMaster/MBTCPMaster.cc
+2
-2
RTUExchange.cc
extensions/ModbusMaster/RTUExchange.cc
+1
-1
Storages.h
include/Storages.h
+1
-1
No files found.
extensions/ModbusMaster/MBTCPMaster.cc
View file @
bf7aa387
...
...
@@ -31,7 +31,7 @@ pollThread(0)
{
string
p
(
"--"
+
prefix
+
"-set-prop-prefix"
);
string
v
=
conf
->
getArgParam
(
p
,
""
);
if
(
!
v
.
empty
()
)
if
(
!
v
.
empty
()
&&
v
[
0
]
!=
'-'
)
prop_prefix
=
v
;
// если параметр всё-таки указан, считаем, что это попытка задать "пустой" префикс
else
if
(
findArgParam
(
p
,
conf
->
getArgc
(),
conf
->
getArgv
())
!=
-
1
)
...
...
@@ -169,7 +169,7 @@ void MBTCPMaster::help_print( int argc, const char* const* argv )
// ---------- init MBTCP ----------
// cout << "--prefix-sm-ready-timeout - время на ожидание старта SM" << endl;
cout
<<
" Настройки протокола TCP: "
<<
endl
;
cout
<<
"--prefix-gateway
hostname,IP
- IP опрашиваемого узла"
<<
endl
;
cout
<<
"--prefix-gateway
-iaddr hostname,IP
- IP опрашиваемого узла"
<<
endl
;
cout
<<
"--prefix-gateway-port num - port на опрашиваемом узле"
<<
endl
;
cout
<<
"--prefix-persistent-connection 0,1 - Не закрывать соединение на каждом цикле опроса"
<<
endl
;
}
...
...
extensions/ModbusMaster/RTUExchange.cc
View file @
bf7aa387
...
...
@@ -31,7 +31,7 @@ rs_pre_clean(false)
{
string
p
(
"--"
+
prefix
+
"-set-prop-prefix"
);
string
v
=
conf
->
getArgParam
(
p
,
""
);
if
(
!
v
.
empty
()
)
if
(
!
v
.
empty
()
&&
v
[
0
]
!=
'-'
)
prop_prefix
=
v
;
// если параметр всё-таки указан, считаем, что это попытка задать "пустой" префикс
else
if
(
findArgParam
(
p
,
conf
->
getArgc
(),
conf
->
getArgv
())
!=
-
1
)
...
...
include/Storages.h
View file @
bf7aa387
...
...
@@ -27,7 +27,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <
string.h
>
#include <
cstring
>
#include <string>
/*! Эти 2 значения используются в TableBlockStorage как флаги для поля count, чтобы не вводить лишнее поле
...
...
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