bug fix
This commit is contained in:
parent
8be8fc23db
commit
0a422d1c4d
4
stir.ino
4
stir.ino
@ -1,4 +1,4 @@
|
|||||||
/////////////////////////////////////////////////////////////////////////////// Stir Control (mwx'2019, v1.3.0)
|
/////////////////////////////////////////////////////////////////////////////// Stir Control (mwx'2019, v1.3.1)
|
||||||
#include <EEPROM.h>
|
#include <EEPROM.h>
|
||||||
#include <LiquidCrystal_I2C.h>
|
#include <LiquidCrystal_I2C.h>
|
||||||
|
|
||||||
@ -169,7 +169,7 @@ void loop() { //////////////////////////////////////////////////////////////////
|
|||||||
if (MS>=stop1+20000) {
|
if (MS>=stop1+20000) {
|
||||||
if (!fanstate1) r1=0;
|
if (!fanstate1) r1=0;
|
||||||
else {
|
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;
|
if (abs(r)>RTOL) r1=r<0?r1-1-abs(r)/10:r1+1+abs(r)/10;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user