Arduino_PowerManagement: setExternalPowerEnabled(false) in Standby mode

Hi, I’m using an Arduino Portenta H7 rev1, and when using the function setExternalPowerEnabled(false) in setup() it correctly turns off the 3.3V pin.

But then going into Standby mode, standByUntilWakeupEvent with enableWakeupFromRTC after setExternalPowerEnabled(false), the 3.3V pin goes ON again.

Am I doing something wrong? It would be very useful if the function setExternalPowerEnabled(false) could extend into Standby mode, in order to preserve battery due to peripherals consumption when 3.3V is on, and eliminate the need for an external transistor or MOSFET as a switch.

Regards,

In order to make all relevant information available to any who are interested in this subject, I'll share a link to the formal report @felipecook submitted to the library developers here: