Skip to content

Commit

Permalink
Fix GroPoint success for temperature
Browse files Browse the repository at this point in the history
Signed-off-by: Sara Damiano <[email protected]>
  • Loading branch information
SRGDamia1 committed Sep 21, 2023
1 parent 4a993a6 commit 5a4d77f
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/sensors/GroPointParent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -234,19 +234,19 @@ bool GroPointParent::addSingleMeasurementResult(void) {
T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13);

// Fix not-a-number values
if (!success || isnan(T1)) T1 = -9999;
if (!success || isnan(T2)) T2 = -9999;
if (!success || isnan(T3)) T3 = -9999;
if (!success || isnan(T4)) T4 = -9999;
if (!success || isnan(T5)) T5 = -9999;
if (!success || isnan(T6)) T6 = -9999;
if (!success || isnan(T7)) T7 = -9999;
if (!success || isnan(T8)) T8 = -9999;
if (!success || isnan(T9)) T9 = -9999;
if (!success || isnan(T10)) T10 = -9999;
if (!success || isnan(T11)) T11 = -9999;
if (!success || isnan(T12)) T12 = -9999;
if (!success || isnan(T13)) T13 = -9999;
if (!successT || isnan(T1)) T1 = -9999;
if (!successT || isnan(T2)) T2 = -9999;
if (!successT || isnan(T3)) T3 = -9999;
if (!successT || isnan(T4)) T4 = -9999;
if (!successT || isnan(T5)) T5 = -9999;
if (!successT || isnan(T6)) T6 = -9999;
if (!successT || isnan(T7)) T7 = -9999;
if (!successT || isnan(T8)) T8 = -9999;
if (!successT || isnan(T9)) T9 = -9999;
if (!successT || isnan(T10)) T10 = -9999;
if (!successT || isnan(T11)) T11 = -9999;
if (!successT || isnan(T12)) T12 = -9999;
if (!successT || isnan(T13)) T13 = -9999;

MS_DBG(F(" "), _gsensor.getParameter1());
MS_DBG(F(" "), _gsensor.getUnits1());
Expand Down Expand Up @@ -297,5 +297,5 @@ bool GroPointParent::addSingleMeasurementResult(void) {
_sensorStatus &= 0b10011111;

// Return true when finished
return success;
return success && successT;
}

0 comments on commit 5a4d77f

Please sign in to comment.