Skip to content

Commit

Permalink
Bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SwoopX authored and manup committed Aug 12, 2020
1 parent 82f4ac0 commit a800f7f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
9 changes: 5 additions & 4 deletions de_web_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3514,7 +3514,6 @@ void DeRestPluginPrivate::checkSensorButtonEvent(Sensor *sensor, const deCONZ::A
gids = QStringList();
gids << "0" << "0" << "0" << "0";
}
else

// check group corresponding to source endpoint
int i = ind.srcEndpoint();
Expand Down Expand Up @@ -15180,10 +15179,12 @@ void DeRestPluginPrivate::delayedFastEnddeviceProbe(const deCONZ::NodeEvent *eve
checkSensorBindingsForClientClusters(sensor);
}
else if (sensor->modelId().startsWith(QLatin1String("ICZB-RM")) || // icasa remote
sensor->modelId().startsWith(QLatin1String("ZGRC-KEY")) // Sunricher remote
sensor->modelId().startsWith(QLatin1String("ZGRC-KEY"))) // Sunricher remote
{
if (sensor->modelId() == QLatin1String("ZGRC-KEY-012")) { quint8 lastEndpoint = 0x05; }
else { quint8 lastEndpoint = 0x04; }
quint8 lastEndpoint;

if (sensor->modelId() == QLatin1String("ZGRC-KEY-012")) { lastEndpoint = 0x05; }
else { lastEndpoint = 0x04; }

ResourceItem *item = sensor->item(RConfigGroup);
if (!item)
Expand Down
3 changes: 3 additions & 0 deletions sensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
#define S_BUTTON_7 7000
#define S_BUTTON_8 8000
#define S_BUTTON_9 9000
#define S_BUTTON_10 10000
#define S_BUTTON_11 11000
#define S_BUTTON_12 12000

struct SensorFingerprint
{
Expand Down

0 comments on commit a800f7f

Please sign in to comment.