Skip to content

Commit

Permalink
Merge pull request #4975 from manup/taskitem_globals
Browse files Browse the repository at this point in the history
Remove global TaskItems in thermostat and window covering modules
  • Loading branch information
manup authored Jun 4, 2021
2 parents 0f370be + 9cbae20 commit f6164f2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions de_web_plugin_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -1869,6 +1869,10 @@ public Q_SLOTS:
// schedules
QTimer *scheduleTimer;
std::vector<Schedule> schedules;
TaskItem taskScheduleTimer;

// window covering
TaskItem calibrationTask;

// webhooks
QNetworkAccessManager *webhookManager = nullptr;
Expand Down
1 change: 0 additions & 1 deletion thermostat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ void DeRestPluginPrivate::updateThermostatSchedule(Sensor *sensor, quint8 newWee


// static const QStringList weekday({"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Away"});
static TaskItem taskScheduleTimer;
static int dayofweekTimer = 0;

/*! Handle packets related to the ZCL Thermostat cluster.
Expand Down
1 change: 0 additions & 1 deletion window_covering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@

int calibrationStep = 0;
int operationalStatus = 0;
TaskItem calibrationTask;

/*! Handle packets related to the ZCL Window Covering cluster.
\param ind the APS level data indication containing the ZCL packet
Expand Down

0 comments on commit f6164f2

Please sign in to comment.