   initNetwork();
   initPrinter();
 }
-
-// -- Flag to indicate whether we've encountered an irrecoverable error
-
-boolean systemOK = true;
 
 // -- Check for new data and download if found
 


inline void terminalError(unsigned int times) {
  flashErrorLEDs(times, 500);
  systemOK = false;
  digitalWrite(errorLED, HIGH);
}

// -- Print send any data from the cache to the printer

Bounce bouncer = Bounce(buttonPin, 5); // 5 millisecond debounce

void loop() {
  if (downloadWaiting) {
    bouncer.update();
    if (bouncer.read() == HIGH) {
      printFromDownload();
    }
  } else {
    checkForDownload();
    if (!downloadWaiting) {
      delay(pollingDelay);
    }
  }
}
