diff --git a/src/main/java/com/iflytop/handacid/HandAcidApplication.java b/src/main/java/com/iflytop/handacid/HandAcidApplication.java index aa4c3f1..3c57cdc 100644 --- a/src/main/java/com/iflytop/handacid/HandAcidApplication.java +++ b/src/main/java/com/iflytop/handacid/HandAcidApplication.java @@ -1,13 +1,13 @@ package com.iflytop.handacid; -import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.context.ConfigurableApplicationContext; import org.springframework.core.env.ConfigurableEnvironment; +import org.springframework.scheduling.annotation.EnableScheduling; @SpringBootApplication -@MapperScan("com.iflytop.handacid.common.mapper") +@EnableScheduling public class HandAcidApplication { public static void main(String[] args) { diff --git a/src/main/java/com/iflytop/handacid/app/scheduled/BleGamepadStateScheduledTask.java b/src/main/java/com/iflytop/handacid/app/scheduled/BleGamepadStateScheduledTask.java index a9ace9e..570de3c 100644 --- a/src/main/java/com/iflytop/handacid/app/scheduled/BleGamepadStateScheduledTask.java +++ b/src/main/java/com/iflytop/handacid/app/scheduled/BleGamepadStateScheduledTask.java @@ -30,7 +30,6 @@ public class BleGamepadStateScheduledTask { if (!deviceState.isVirtual()) { DeviceCommand getHardWareBoardCommand = DeviceCommandGenerator.getHardWareBoard(); CommandFuture getHardWareBoardCommandFuture = deviceCommandService.sendCommand(getHardWareBoardCommand); - CommandUtil.wait(getHardWareBoardCommandFuture); DeviceCommand getBleGamepadCommand = DeviceCommandGenerator.getBleGamepad(); CommandFuture getBleGamepadCommandFuture = deviceCommandService.sendCommand(getBleGamepadCommand); CommandUtil.wait(getHardWareBoardCommandFuture, getBleGamepadCommandFuture);