Skip to content

Commit 9d7f49b

Browse files
author
Alrik Vidstrom
committed
Fix two incorrect comments
1. Typo where M7 should be M4. 2. Incorrect comment, because the flags are not just for standby
1 parent 8d0029c commit 9d7f49b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Arduino_LowPowerPortentaH7.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ bool LowPowerPortentaH7::wasInCPUMode(CPUMode mode) const
233233

234234
void LowPowerPortentaH7::resetPreviousCPUModeFlags() const
235235
{
236-
PWR->CPUCR |= PWR_CPUCR_CSSF; // Clear standby flags
236+
PWR->CPUCR |= PWR_CPUCR_CSSF;
237237
}
238238

239239
uint16_t LowPowerPortentaH7::numberOfDeepSleepLocks() const
@@ -312,7 +312,7 @@ LowPowerReturnCode LowPowerPortentaH7::standbyM4() const
312312
// <--
313313

314314
// Disable and clear all pending interrupts in the NVIC. There are 8
315-
// registers in the Cortex-M7.
315+
// registers in the Cortex-M4.
316316
for (auto i = 0; i < 8; i++)
317317
{
318318
NVIC->ICER[i] = 0xffffffff;

0 commit comments

Comments
 (0)