@@ -136,7 +136,7 @@ public: | |||
pinMode(pin, INPUT); | |||
} | |||
void meassure() { | |||
void measure() { | |||
short int milli = millis(); | |||
if(last_milli != milli){ | |||
if(digitalRead(anemometer_pin) == HIGH){ | |||
@@ -410,9 +410,9 @@ void setup() | |||
// Add the main program code into the continuous loop() function | |||
void loop() | |||
{ | |||
anemometer_1.meassure(); | |||
anemometer_2.meassure(); | |||
anemometer_3.meassure(); | |||
anemometer_1.measure(); | |||
anemometer_2.measure(); | |||
anemometer_3.measure(); | |||
if (second() != last_second) { | |||
every_second(); |