Mesh stability and device brownouts

@armor, I’m noticing the opposite of what you are seeing with Retained Memory.

I’ve added this code (from ScruffR a year ago) to my Xenon’s test code.

const int LED = D7;
retained int x;
void setup() {
    pinMode(LED, OUTPUT);
    digitalWrite(LED, (x == 123));
    x = 123;
}

Xenon is running 1.4.0 with SYSTEM_THREAD(ENABLED)
The Li-Po Voltage is really low at 3.38 V, it just completed a discharge trial.

LED will turn ON after the first Reset.
Neither Sleeping System.sleep( {}, {}, 60); nor OTA Flashing will destroy the retained variable (turn LED off).
The only way to get the LED off is to completely remove all Power, which makes sense.
But I was surprised that OTA Flashing didn’t cause the retained int to be re-initialized.