|
|
@ -24,14 +24,14 @@ public class SystemController { |
|
|
|
@Operation(summary = "是否启动虚拟模式") |
|
|
|
@PostMapping("/virtual") |
|
|
|
public Result<?> changeVirtualMode(Boolean mode) { |
|
|
|
deviceStateService.setVirtual(mode); |
|
|
|
deviceStateService.getDeviceState().setVirtual(mode); |
|
|
|
return Result.success(); |
|
|
|
} |
|
|
|
|
|
|
|
@Operation(summary = "模拟向硬件写入完毕") |
|
|
|
@PostMapping("/initComplete") |
|
|
|
public Result<?> setInitComplete(Boolean initComplete) { |
|
|
|
deviceStateService.setInitComplete(initComplete); |
|
|
|
deviceStateService.getDeviceState().setInitComplete(initComplete); |
|
|
|
return Result.success(); |
|
|
|
} |
|
|
|
|
|
|
|