Commit 15b6cea5 authored by Pavel Vainerman's avatar Pavel Vainerman

(RTU188): попытка исправить ошибку (SEGFAULT) в работе с RTU188

parent 2163819c
......@@ -179,7 +179,7 @@ float RTUStorage::getFloat( RTUJack jack, unsigned short int chan, UniversalIO::
case nJ1:
return unio_ai[chan];
case nJ2:
return unio_ai[24+chan];
return unio_ai[12+chan];
case nJ5:
return dio_ai[chan];
case nX1:
......@@ -201,7 +201,7 @@ float RTUStorage::getFloat( RTUJack jack, unsigned short int chan, UniversalIO::
case nJ1:
return unio_ao[chan];
case nJ2:
return unio_ao[24+chan];
return unio_ao[12+chan];
case nJ5:
return dio_ao[chan];
case nX1:
......
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