 // const char* host = "192.168.1.67"; // lazyatom
 // const char* host = "178.79.132.137"; // interblah
 const char* host = "wee-printer.gofreerange.com";
-const uint16_t port = 80;
+const unsigned int port = 80;
 const char *path = "/printer/1";
 
 boolean downloadWaiting = false;
 char* cacheFilename = "TMP";
 
 void checkForDownload() {
-  uint32_t length = 0;
-  uint32_t content_length = 0;
+  unsigned long length = 0;
+  unsigned long content_length = 0;
 
   if (SD.exists(cacheFilename)) SD.remove(cacheFilename);
   File cache = SD.open(cacheFilename, FILE_WRITE);

#define debug2(a, b)
#endif

const int errorLED = 5;
const int downloadLED = 6;
const int readyLED = 7;

void initDiagnosticLEDs() {
  pinMode(errorLED, OUTPUT);

  cache.close();
}

const byte buttonPin = 8;
Bounce bouncer = Bounce(buttonPin, 5); // 5 millisecond debounce
unsigned long pollingDelay = 10000; // 1 minute

