Commit 22b25cc4 authored by Pavel Vainerman's avatar Pavel Vainerman

Merge remote-tracking branch '1.x/master'

Conflicts: .gear/rules TODO conf/libuniset2.spec extensions/ModbusMaster/MBExchange.cc extensions/lib/MTR.cc
parents b34ace55 4e190cf3
......@@ -457,9 +457,9 @@ MTR::MTRError update_configuration( ModbusRTUMaster* mb, ModbusRTU::ModbusAddr s
const std::string& mtrconfile, int verb )
{
std::string m = MTR::getModelNumber(mb, slaveaddr);
if( m != "MTR315Transducer" )
if( m != "MTR315Transducer" && m != "MTR3-3Transducer" )
{
cerr << "(mtr-setup): model number != 'MTR315Transducer' (read: " << m << ")" << endl;
cerr << "(mtr-setup): model number must be 'MTR315Transducer' or 'MTR3-3Transducer' (read: '" << m << "')" << endl;
return mtrBadDeviceType;
}
......
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