Skip to content

Commit 51c8ee6

Browse files
committed
Move dev comments inside function to not confuse docs parsing
1 parent 62a41f7 commit 51c8ee6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/Arduino_LowPowerPortentaH7.cpp

+5-4
Original file line numberDiff line numberDiff line change
@@ -230,12 +230,13 @@ bool LowPowerPortentaH7::modeWasStop() const
230230
return PWR->CPUCR & PWR_CPUCR_STOPF;
231231
}
232232

233-
// This function uses undocumented features of Mbed to retrieve the number
234-
// of active deep sleep locks. It is experimental and may break at any time,
235-
// but can be handy for some users to debug deep sleep lock problems.
236-
// It uses features of the compiled machine code to find the number of locks.
237233
uint16_t LowPowerPortentaH7::numberOfDeepSleepLocks() const
238234
{
235+
// This function uses undocumented features of Mbed to retrieve the number
236+
// of active deep sleep locks. It is experimental and may break at any time,
237+
// but can be handy for some users to debug deep sleep lock problems.
238+
// It uses features of the compiled machine code to find the number of locks.
239+
239240
// clang-format off
240241
return *((volatile uint16_t*) *((volatile uint32_t*) ((((volatile uint32_t)
241242
&sleep_manager_can_deep_sleep) & 0xfffffffe) + 0x10)));

0 commit comments

Comments
 (0)