fix: 修改示波器后端
This commit is contained in:
@@ -118,16 +118,16 @@ public class OscilloscopeApiController : ControllerBase
|
||||
return StatusCode(StatusCodes.Status500InternalServerError, "设置抽样率失败");
|
||||
}
|
||||
|
||||
// 刷新RAM
|
||||
if (config.AutoRefreshRAM)
|
||||
{
|
||||
var refreshResult = await oscilloscope.RefreshRAM();
|
||||
if (!refreshResult.IsSuccessful)
|
||||
{
|
||||
logger.Error($"刷新RAM失败: {refreshResult.Error}");
|
||||
return StatusCode(StatusCodes.Status500InternalServerError, "刷新RAM失败");
|
||||
}
|
||||
}
|
||||
// // 刷新RAM
|
||||
// if (config.AutoRefreshRAM)
|
||||
// {
|
||||
// var refreshResult = await oscilloscope.RefreshRAM();
|
||||
// if (!refreshResult.IsSuccessful)
|
||||
// {
|
||||
// logger.Error($"刷新RAM失败: {refreshResult.Error}");
|
||||
// return StatusCode(StatusCodes.Status500InternalServerError, "刷新RAM失败");
|
||||
// }
|
||||
// }
|
||||
|
||||
// 设置捕获开关
|
||||
var captureResult = await oscilloscope.SetCaptureEnable(config.CaptureEnabled);
|
||||
|
||||
Reference in New Issue
Block a user