|
|
@ -8,8 +8,8 @@ import com.iflytop.gd.hardware.command.CommandHandler; |
|
|
|
public class FanHandler extends CommandHandler { |
|
|
|
|
|
|
|
private int fanId = 0; |
|
|
|
public FanHandler(int fanId) |
|
|
|
{ |
|
|
|
|
|
|
|
public FanHandler(int fanId) { |
|
|
|
super(); |
|
|
|
} |
|
|
|
|
|
|
@ -19,8 +19,6 @@ public class FanHandler extends CommandHandler { |
|
|
|
// checkAction(command.getAction()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 发送命令 |
|
|
|
if (command.getAction() == CmdAction.open) { |
|
|
|
|
|
|
@ -36,8 +34,7 @@ public class FanHandler extends CommandHandler { |
|
|
|
// 发送命令 |
|
|
|
HardwareService.sendPacket(); |
|
|
|
return true; |
|
|
|
} |
|
|
|
else if (command.getAction() == CmdAction.close) { |
|
|
|
} else if (command.getAction() == CmdAction.close) { |
|
|
|
// 关闭风扇 |
|
|
|
return true; |
|
|
|
} |
|
|
|