     // button released, check if rotation, UP event if not
     if (! re_rotation)
     {
-      unsigned long last_up_time = millis();
-      unsigned int push_time = last_up_time - re_down_time;
+      ULONG last_up_time = millis();
+      UINT push_time = last_up_time - re_down_time;
 
       if (push_time < ReHoldClickTime)
       {

  // dump EEPROM values
  dump_eeprom();

  // show the main screen and continue in loop()
  show_main_screen();

  // eat any events that may have been generated
  event_flush();
}

//----------------------------------------

// The resultant buffer does NOT have a terminating '\0'!
//----------------------------------------

void ulong2buff(char *buf, int bufsize, ULONG value)
{
  char *ptr = buf + bufsize - 1;    // rightmost char in 'buf'

