Merge pull request #3653 from wavexx/more_warnings

cleanup: Fix more spourious missing return warnings
This commit is contained in:
Yuri D'Elia 2022-10-03 21:59:20 +02:00 committed by GitHub
commit 8188117c4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -466,7 +466,9 @@ void PAT9125_sensor::settings_init() {
}
int16_t PAT9125_sensor::getStepCount() {
ATOMIC_BLOCK(ATOMIC_RESTORESTATE) { return stepCount; }
int16_t ret;
ATOMIC_BLOCK(ATOMIC_RESTORESTATE) { ret = stepCount; }
return ret;
}
void PAT9125_sensor::resetStepCount() {