Browse Source

change readdelay default

master
interfisch 2 years ago
parent
commit
247ccf2003
  1. 3
      src/main.cpp

3
src/main.cpp

@ -25,7 +25,7 @@ @@ -25,7 +25,7 @@
struct sensordata
{
unsigned long lastreadtime=0;
unsigned long readdelay=1000*30; //polling delay
unsigned long readdelay=1000*10; //polling delay
float minchange=0; //send new value if difference to last sent value is greater than this
float lastsentvalue=0;
unsigned long lastsent=0;
@ -105,7 +105,6 @@ void setup() { @@ -105,7 +105,6 @@ void setup() {
Serial.println(F("Error initialising BH1750"));
}
dataBH1750.minchange=10.0;
dataBH1750.readdelay=1000*10;
dataBH1750.senddelaymax=1000*60*2;
#endif

Loading…
Cancel
Save