From 98776903d333cf978fb004b0e2ca903ac7cbf6fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E5=87=A4=E5=90=89?= Date: Tue, 5 Aug 2025 19:28:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=BC=80=E5=90=AF=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/iflytop/handacid/HandAcidApplication.java | 4 ++-- .../iflytop/handacid/app/scheduled/BleGamepadStateScheduledTask.java | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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);