issue 433 set sum to zero in humidity correction (#445)

Co-authored-by: michael carter <mycarda@btinterent.com>
This commit is contained in:
Michael Carter 2024-07-01 13:23:08 +01:00 committed by GitHub
parent 93cb0689ef
commit 6816079f7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -661,6 +661,7 @@ float GetRAHumidity( uint32_t humCurrent, uint32_t humMin, uint32_t humMax, floa
powc *= Cp;
}
Cp -= sum;
sum = 0.0;
float xj = 1.0f;
for ( int j = 0; j < 7; j++) {