修复堵转问题

This commit is contained in:
sunbeam 2024-11-19 10:49:56 +08:00
parent 96005eac19
commit 787e55c17b
2 changed files with 8 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@ -499,7 +499,7 @@ void CurrentDetecte(void)
current2 = getAdval(ADCH_RLY1); current2 = getAdval(ADCH_RLY1);
if (current1 > getOCval && OC1flag == 0)//实测1A->0.14V->28AD if (current1 > getOCval() && OC1flag == 0)//实测1A->0.14V->28AD
{ {
OC_Count1++; OC_Count1++;
if (OC_Count1 >= 300) if (OC_Count1 >= 300)