Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 29a7588

Browse files
committed
Fixed uninitialized variable. Bumped version to 1.16
1 parent 4136e6e commit 29a7588

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

software/dbus-tsmppt.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Application version and revision
2-
VERSION = 1.15
2+
VERSION = 1.16
33

44
# Add more folders to ship with the application here
55
unix {

software/src/tsmppt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const int CS_BULK = 5;
3434

3535

3636
Tsmppt::Tsmppt(const QString &IPAddress, const int port, int interval, int slave, QObject *parent):
37-
QObject(parent), mInitialized(false), mTimer(new QTimer(this)), m_interval(interval), m_t_bulk(0), m_t_bulk_ms(0), yield_user(0), yield_system(0)
37+
QObject(parent), mInitialized(false), mTimer(new QTimer(this)), m_interval(interval), m_cs(0), m_t_bulk(1), m_t_bulk_ms(0), yield_user(0), yield_system(0)
3838
{
3939
QLOG_DEBUG() << "Tsmppt::Tsmppt(" << IPAddress << ", " << port << ", " << interval << ", " << slave << ")";
4040
mCtx = modbus_new_tcp_pi(IPAddress.toStdString().c_str(), QString::number(port).toStdString().c_str());

0 commit comments

Comments
 (0)