summaryrefslogtreecommitdiffstats
path: root/src/serialbus/qmodbuspdu.h
diff options
context:
space:
mode:
authorKarsten Heimrich <karsten.heimrich@theqtcompany.com>2016-02-17 13:02:08 +0100
committerKarsten Heimrich <karsten.heimrich@theqtcompany.com>2016-02-17 19:10:37 +0000
commitfe47101cc0738e4c9a198148e6ebe631d11b8dba (patch)
treef2d604fff5ca502e13fec2ca0aa61abe3e6fe30e /src/serialbus/qmodbuspdu.h
parent0420e57c90ccdb94b89761da47140f284eb89d37 (diff)
Use a more explictit type for data minimum size request.
Update docs. We do no calculation, it's a simple lookup. Change-Id: Idbaa52c0d37e029c0ea21f7ad616d540ed65cd8d Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Diffstat (limited to 'src/serialbus/qmodbuspdu.h')
-rw-r--r--src/serialbus/qmodbuspdu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serialbus/qmodbuspdu.h b/src/serialbus/qmodbuspdu.h
index e899351..70f861b 100644
--- a/src/serialbus/qmodbuspdu.h
+++ b/src/serialbus/qmodbuspdu.h
@@ -194,7 +194,7 @@ public:
: QModbusPdu(code, newData)
{}
- Q_SERIALBUS_EXPORT static int minimumDataSize(const QModbusPdu &pdu);
+ Q_SERIALBUS_EXPORT static int minimumDataSize(const QModbusRequest &pdu);
Q_SERIALBUS_EXPORT static int calculateDataSize(const QModbusPdu &pdu, const QByteArray &data);
template <typename ... Args>
@@ -216,7 +216,7 @@ public:
: QModbusPdu(code, newData)
{}
- Q_SERIALBUS_EXPORT static int minimumDataSize(const QModbusPdu &pdu);
+ Q_SERIALBUS_EXPORT static int minimumDataSize(const QModbusResponse &pdu);
Q_SERIALBUS_EXPORT static int calculateDataSize(const QModbusPdu &pdu, const QByteArray &data);
template <typename ... Args>