We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c02f480 commit 5d7bd02Copy full SHA for 5d7bd02
src/Arduino_LowPowerPortentaH7.cpp
@@ -212,7 +212,7 @@ LowPowerReturnCode LowPowerPortentaH7::checkOptionBytes() const
212
213
bool LowPowerPortentaH7::wasInCPUMode(CPUMode mode) const
214
{
215
- auto registerValue = PWR->CPUCR;
+ const auto registerValue = PWR->CPUCR;
216
217
switch (mode)
218
@@ -224,6 +224,8 @@ bool LowPowerPortentaH7::wasInCPUMode(CPUMode mode) const
224
return registerValue & PWR_CPUCR_SBF;
225
case CPUMode::stop:
226
return registerValue & PWR_CPUCR_STOPF;
227
+ default:
228
+ return false;
229
}
230
231
return false;
0 commit comments