Commit 1cab9e42 authored by Pavel Vainerman's avatar Pavel Vainerman

Небольщая правка типов. Исравлена ошибка в ModbusMaster "nbit"

parent 0f2b33f9
...@@ -92,10 +92,10 @@ class MBExchange: ...@@ -92,10 +92,10 @@ class MBExchange:
public IOBase public IOBase
{ {
// only for RTU // only for RTU
unsigned short nbit; /*!< bit number) */ short nbit; /*!< bit number (-1 - not used) */
VTypes::VType vType; /*!< type of value */ VTypes::VType vType; /*!< type of value */
unsigned short rnum; /*!< count of registers */ unsigned short rnum; /*!< count of registers */
unsigned short nbyte; /*!< byte number (1-2) */ unsigned short nbyte; /*!< byte number (1-2) */
RSProperty(): RSProperty():
nbit(-1), vType(VTypes::vtUnknown), nbit(-1), vType(VTypes::vtUnknown),
...@@ -152,8 +152,8 @@ class MBExchange: ...@@ -152,8 +152,8 @@ class MBExchange:
MTR::MTRType mtrType; /*!< тип регистра (согласно спецификации на MTR) */ MTR::MTRType mtrType; /*!< тип регистра (согласно спецификации на MTR) */
// optimization // optimization
unsigned int q_num; /*!< number in query */ size_t q_num; /*!< number in query */
unsigned int q_count; /*!< count registers for query */ size_t q_count; /*!< count registers for query */
RegMap::iterator rit; RegMap::iterator rit;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
--confile test.xml \ --confile test.xml \
--mbtcp-name MBMaster1 \ --mbtcp-name MBMaster1 \
--smemory-id SharedMemory \ --smemory-id SharedMemory \
--mbtcp-log-add-levels level4 \ --mbtcp-log-add-levels level4,level3 \
--mbtcp-set-prop-prefix \ --mbtcp-set-prop-prefix \
--mbtcp-filter-field rs \ --mbtcp-filter-field rs \
--mbtcp-filter-value 5 \ --mbtcp-filter-value 5 \
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
--mbtcp-recv-timeout 900 \ --mbtcp-recv-timeout 900 \
--mbtcp-polltime 200 \ --mbtcp-polltime 200 \
--mbtcp-polltime 200 \ --mbtcp-polltime 200 \
--mbtcp-force-disconnect 1 \
--mbtcp-force-out 1 \ --mbtcp-force-out 1 \
--mbtcp-persistent-connection 1 \
--ulog-add-levels system \ --ulog-add-levels system \
--mbtcp-run-logserver \ --mbtcp-run-logserver \
$* $*
......
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
#define Object_LT_H_ #define Object_LT_H_
//-------------------------------------------------------------------------- //--------------------------------------------------------------------------
#include <deque> #include <deque>
#include <time.h>
#include "UniSetTypes.h" #include "UniSetTypes.h"
#include "MessageType.h" #include "MessageType.h"
#include "PassiveTimer.h" #include "PassiveTimer.h"
...@@ -138,7 +139,7 @@ class LT_Object ...@@ -138,7 +139,7 @@ class LT_Object
struct TimerInfo struct TimerInfo
{ {
TimerInfo(): id(0), curTimeMS(0), priority(UniSetTypes::Message::High) {}; TimerInfo(): id(0), curTimeMS(0), priority(UniSetTypes::Message::High) {};
TimerInfo(UniSetTypes::TimerId id, timeout_t timeMS, short cnt, UniSetTypes::Message::Priority p): TimerInfo(UniSetTypes::TimerId id, timeout_t timeMS, clock_t cnt, UniSetTypes::Message::Priority p):
id(id), id(id),
curTimeMS(timeMS), curTimeMS(timeMS),
priority(p), priority(p),
......
...@@ -23,4 +23,4 @@ Utilities/codegen ...@@ -23,4 +23,4 @@ Utilities/codegen
Utilities/codegen/tests Utilities/codegen/tests
Utilities/MBTester Utilities/MBTester
Utilities/NullController Utilities/NullController
/usr/include/sigc++-2.0/ /usr/include/sigc++-2.0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment