Skip to content

Commit ff097be

Browse files
committed
AE-591: Turned method "turnOffEthernet" from private to public so it can be called outside the class directly from its Singleton object.
1 parent 2c68a63 commit ff097be

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Arduino_LowPowerPortentaH7.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ class LowPowerPortentaH7 {
200200
LowPowerPortentaH7() = default;
201201
~LowPowerPortentaH7() = default;
202202

203-
bool turnOffEthernet() const;
204203
void waitForFlashReady() const;
205204

206205
/// @cond DEV
@@ -370,6 +369,13 @@ class LowPowerPortentaH7 {
370369
* @return True if the microcontroller was in the given mode, false otherwise.
371370
*/
372371
bool wasInCPUMode(CPUMode mode) const;
372+
373+
/**
374+
* @brief Put the ethernet module and phy in low power mode.
375+
* Note: The board will blink the red LED every half second if this fails and will not progress.
376+
* @return Success or failure.
377+
*/
378+
bool turnOffEthernet() const;
373379
};
374380

375381
/*

0 commit comments

Comments
 (0)