Commit 9dc7d2c5 authored by Pavel Vaynerman's avatar Pavel Vaynerman

fixed minor bug in MBTCPMaster ( unsigned --> signed )

parent 0f992990
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
Name: libuniset Name: libuniset
Version: 0.99 Version: 0.99
Release: eter25 Release: eter26
Summary: UniSet - library for building distributed industrial control systems Summary: UniSet - library for building distributed industrial control systems
License: GPL License: GPL
Group: Development/C++ Group: Development/C++
...@@ -187,6 +187,9 @@ rm -f %buildroot%_libdir/*.la ...@@ -187,6 +187,9 @@ rm -f %buildroot%_libdir/*.la
%exclude %_pkgconfigdir/libUniSet.pc %exclude %_pkgconfigdir/libUniSet.pc
%changelog %changelog
* Fri Jan 14 2011 Pavel Vainerman <pv@etersoft.ru> 0.99-eter26
- fixed bug in ModbusTCP Master. Set default signed type for data
* Sat Dec 04 2010 Pavel Vainerman <pv@altlinux.ru> 0.99-eter25 * Sat Dec 04 2010 Pavel Vainerman <pv@altlinux.ru> 0.99-eter25
- fixed bug in uniset-mbtcptest (writexx) - fixed bug in uniset-mbtcptest (writexx)
- minor fixes ( add 'm'-parametes for set value < 0 ) - minor fixes ( add 'm'-parametes for set value < 0 )
......
...@@ -72,7 +72,7 @@ rpmbs $SPECNAME ...@@ -72,7 +72,7 @@ rpmbs $SPECNAME
#send_notify #send_notify
# Увеличиваем релиз и запоминаем спек после успешной сборки # Увеличиваем релиз и запоминаем спек после успешной сборки
inc_release $SPECNAME # inc_release $SPECNAME
# и запоминаем спек после успешной сборки # и запоминаем спек после успешной сборки
#cvs commit -m "Auto updated by $0 for $BUILDNAME" $SPECNAME || fatal "Can't commit spec" #cvs commit -m "Auto updated by $0 for $BUILDNAME" $SPECNAME || fatal "Can't commit spec"
......
...@@ -1761,7 +1761,7 @@ void MBTCPMaster::updateRSProperty( RSProperty* p, bool write_only ) ...@@ -1761,7 +1761,7 @@ void MBTCPMaster::updateRSProperty( RSProperty* p, bool write_only )
IOBase::processingAsDI( p, r->mbval, shm, force ); IOBase::processingAsDI( p, r->mbval, shm, force );
} }
else else
IOBase::processingAsAI( p, (unsigned short)(r->mbval), shm, force ); IOBase::processingAsAI( p, (signed short)(r->mbval), shm, force );
} }
return; return;
} }
......
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