 
   Serial.println(" setup complete.");
   blinkLED();
+
+  // trial:  Increase loop priority to 2 above DMX, which is 1
+  vTaskPrioritySet(xTaskGetCurrentTaskHandle(), 2);
+  
 } //setup
 
 /************************************************************************

  //debugging

  
  uint8_t bootStatus = DMXWiFiConfig.begin(1);
  uint8_t dhcpStatus = 0;

  if ( digitalRead(STARTUP_MODE_PIN) == 0 ) {
    DMXWiFiConfig.initConfig();
    //DMXWiFiConfig.commitToPersistentStore();
  }
  
  dmx_direction = DMXWiFiConfig.inputToNetworkMode();
  rdm_enabled   = DMXWiFiConfig.rdmMode();
  
  if ( dmx_direction == OUTPUT_FROM_NETWORK_MODE ) {					      // DMX Driver startup based on direction flag
    Serial.println("starting DMX");
    ESP32DMX.startRDM(DIRECTION_PIN);
  } else {
    Serial.println("starting DMX input");
    ESP32DMX.setDirectionPin(DIRECTION_PIN);
    ESP32DMX.setDataReceivedCallback(&gotDMXCallback);
    ESP32DMX.startInput();
  }

  if ( DMXWiFiConfig.APMode() ) {            // WiFi startup
    Serial.print("AP_MODE ");

    while (WiFi.status() != WL_CONNECTED)  {
      delay(100);
      blinkLED();
      
    }

  }
  Serial.print("wifi started ");
  Serial.println(WiFi.localIP());

  //------------------- Initialize serialDMX  -------------------

  if ( dmx_direction == OUTPUT_FROM_NETWORK_MODE ) {                // DMX Driver startup based on direction flag
    Serial.println("starting DMX");
    ESP32DMX.startRDM(DIRECTION_PIN);
  } else {
    Serial.println("starting DMX input");
    ESP32DMX.setDirectionPin(DIRECTION_PIN);
    ESP32DMX.setDataReceivedCallback(&gotDMXCallback);
    ESP32DMX.startInput();
  }
  
  //------------------- Initialize network<->DMX interfaces -------------------
    
