mirror of
https://github.com/anklimov/lighthub
synced 2025-12-09 21:29:49 +03:00
core refactored (Alpha)
This commit is contained in:
@@ -298,7 +298,7 @@ case S_SET:
|
||||
//break;
|
||||
|
||||
case S_CMD:
|
||||
item->setCmd(cmd.getCmd());
|
||||
//item->setCmd(cmd.getCmd());
|
||||
switch (cmd.getCmd())
|
||||
{
|
||||
case CMD_ON:
|
||||
|
||||
@@ -210,7 +210,7 @@ case S_SET:
|
||||
//break;
|
||||
|
||||
case S_CMD:
|
||||
item->setCmd(cmd.getCmd());
|
||||
//item->setCmd(cmd.getCmd());
|
||||
switch (cmd.getCmd())
|
||||
{
|
||||
case CMD_ON:
|
||||
|
||||
@@ -200,8 +200,8 @@ case S_CMD:
|
||||
{
|
||||
case CMD_ON:
|
||||
case CMD_OFF:
|
||||
item->setCmd(cmd.getCmd());
|
||||
item->SendStatus(SEND_COMMAND);
|
||||
//item->setCmd(cmd.getCmd());
|
||||
//item->SendStatus(SEND_COMMAND);
|
||||
return 1;
|
||||
default:
|
||||
debugSerial<<F("Unknown cmd ")<<cmd.getCmd()<<endl;
|
||||
|
||||
Reference in New Issue
Block a user