fix slowly vscan of CV3 & CV & LSV mode

This commit is contained in:
YiChin
2020-08-18 14:09:14 +08:00
parent 0407690197
commit 17e1846afa
4 changed files with 9 additions and 9 deletions
@@ -79,9 +79,9 @@ static void CV3_Vscan(CV3Mode *CV3){
}
if (CV3->_current_direction_up){
Vset = Vset + CV3->_Vstep;
Vset = Vset + CV3->_Vstep * GPT.GptimerMultiple;
}else{
Vset = Vset - CV3->_Vstep;
Vset = Vset - CV3->_Vstep * GPT.GptimerMultiple;
}
if(VmaxCounter != 0 && VminCounter != 0){
@@ -177,9 +177,9 @@ static void CV_Vscan(CVMode *CV){
}
if (CV->_current_direction_up){
Vset = Vset + CV->_Vstep;
Vset = Vset + CV->_Vstep * GPT.GptimerMultiple;
}else{
Vset = Vset - CV->_Vstep;
Vset = Vset - CV->_Vstep * GPT.GptimerMultiple;
}
if(VmaxCounter != 0 && VminCounter != 0){
@@ -60,9 +60,9 @@ static void LSV_Vscan(LSVMode *LSV){
if(!vscanReset){
if (LSV->_current_direction_up){
Vset = Vset + LSV->_Vstep;
Vset = Vset + LSV->_Vstep * GPT.GptimerMultiple;
}else{
Vset = Vset - LSV->_Vstep;
Vset = Vset - LSV->_Vstep * GPT.GptimerMultiple;
}
/*stop condition*/
@@ -4,9 +4,9 @@
#define VERSION_DATE_YEAR 20
#define VERSION_DATE_MONTH 8
#define VERSION_DATE_DAY 14
#define VERSION_DATE_HOUR 9
#define VERSION_DATE_MINUTE 22
#define VERSION_DATE_DAY 18
#define VERSION_DATE_HOUR 14
#define VERSION_DATE_MINUTE 9
// this is NOT the version hash !!
// it's the last version hash