Fix system only sending silent
This commit is contained in:
parent
4b0b5847a7
commit
39dd481c6c
1 changed files with 1 additions and 1 deletions
2
main.cpp
2
main.cpp
|
|
@ -108,7 +108,7 @@ static void state_changed(PwlPriv *priv, bool state)
|
||||||
priv->socket = check_socket(priv);
|
priv->socket = check_socket(priv);
|
||||||
if(priv->socket)
|
if(priv->socket)
|
||||||
{
|
{
|
||||||
bool ret = send_sensor(priv->socket, priv->config.id, false);
|
bool ret = send_sensor(priv->socket, priv->config.id, true);
|
||||||
if(!ret)
|
if(!ret)
|
||||||
{
|
{
|
||||||
delete priv->socket;
|
delete priv->socket;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue