   sprintf(buf, "%04X%08X", (uint16_t) (mac >> 32), (uint32_t) mac);
   return buf;
 }
+unsigned long millisWrapper() {
+  unsigned long now = millis();
+  if(now >= (ULONG_MAX - 10000)) {
+    dln(miscDBG, "doing flow controller (re)init to avoid millis overflow");
+    delay(10000);
+    flowController.init();
+  }
+  return now;
+}

#define miscDBG true
#define citsciDBG false
#define analogDBG true

/////////////////////////////////////////////////////////////////////////////
// temperature sensor stuff /////////////////////////////////////////////////

#include <RCSwitch.h>
#include "Adafruit_MCP23008.h"
#include "EmonLib.h" // Emon Library, see openenergymonitor.org
#include <stdint.h>
#include "joinme.h"

/////////////////////////////////////////////////////////////////////////////
