diff --git a/stir.ino b/stir.ino index aec5450..5e18624 100644 --- a/stir.ino +++ b/stir.ino @@ -1,4 +1,4 @@ -/////////////////////////////////////////////////////////////////////////////// Stir Control (mwx'2019, v1.3.0) +/////////////////////////////////////////////////////////////////////////////// Stir Control (mwx'2019, v1.3.1) #include #include @@ -169,7 +169,7 @@ void loop() { ////////////////////////////////////////////////////////////////// if (MS>=stop1+20000) { if (!fanstate1) r1=0; else { - r=(bstate1?b1:v1)-rpm1; + r=(bstate1?xb1:v1)-rpm1; if (abs(r)>RTOL) r1=r<0?r1-1-abs(r)/10:r1+1+abs(r)/10; } }