void loop()
{
	current_time = millis();

	timerLoop();
	buttonLoop();
}
Example #2
0
void loop() {
  buttonLoop();
  webServerLoop();

  if(takeReadingsNow) {
    takeReadingsNow = false;
    sensorsRead();
    if(graphiteServer)
      sendReadingsToGraphite();
  }
}