From 1182f9b4e8c2b1b428c7569454d028ef65228be1 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Mon, 8 Jul 2024 15:26:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A5=E8=BF=9B=E7=94=B5=E6=9C=BA=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=8D=95=E6=8C=87=E4=BB=A4=E5=BE=80=E5=A4=8D=E8=BF=90?= =?UTF-8?q?=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sdk/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp | 4 ++-- usrc/project_configs.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp b/sdk/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp index ca4682e..853e000 100644 --- a/sdk/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp +++ b/sdk/components/step_motor_ctrl_module/step_motor_ctrl_module.cpp @@ -480,8 +480,8 @@ int32_t StepMotorCtrlModule::step_motor_easy_reciprocating_motion(int32_t startp int32_t ecode = check_befor_run(); if (ecode != 0) return ecode; - int32_t x_startpos; - int32_t x_endpos; + int32_t x_startpos = startpos; + int32_t x_endpos = endpos; int32_t x_beginpos; getnowpos(x_beginpos); diff --git a/usrc/project_configs.h b/usrc/project_configs.h index b206b87..45358da 100644 --- a/usrc/project_configs.h +++ b/usrc/project_configs.h @@ -1,5 +1,5 @@ #pragma once -#define PC_VERSION 504 +#define PC_VERSION 505 #define PC_MANUFACTURER "http://www.iflytop.com/" #define PC_PROJECT_NAME "a8000_subboard" #define PC_IFLYTOP_ENABLE_OS 1