/* This inserts a timer_user block into the active chain. This is a sightly complex process as it can involve triggering a timer load.  */
static void ICACHE_RAM_ATTR insert_active_tu(timer_user *tu)
/* This inserts a timer_user block into the active chain. This is a sightly complex process as it can involve triggering a timer load.  */
static void ICACHE_RAM_ATTR insert_active_tu(timer_user *tu)
{
    if ((*p)->delay >= tu->delay) {
      break;
    }
    tu->delay -= (*p)->delay;
  }
  if (*p) {
    (*p)->delay -= tu->delay;
  }
  tu->next = *p;
  *p = tu;
  if (tu == active) {
    set_timer(active->delay, "insert_active");
  }
  UNLOCK();
}