Skip to content

Commit

Permalink
Reapply "apply fix as per Infineon#5"
Browse files Browse the repository at this point in the history
This reverts commit c7636d6.
  • Loading branch information
Michael Haberler committed Jun 5, 2024
1 parent 47c1624 commit d36b7e7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/DpsClass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,10 @@ int16_t DpsClass::measureTempOnce(float &result, uint8_t oversamplingRate)
int16_t ret = startMeasureTempOnce(oversamplingRate);
if (ret != DPS__SUCCEEDED)
{
if (ret == DPS__FAIL_TOOBUSY)
{
standby();
}
return ret;
}

Expand Down Expand Up @@ -269,6 +273,10 @@ int16_t DpsClass::measurePressureOnce(float &result, uint8_t oversamplingRate)
int16_t ret = startMeasurePressureOnce(oversamplingRate);
if (ret != DPS__SUCCEEDED)
{
if (ret == DPS__FAIL_TOOBUSY)
{
standby();
}
return ret;
}

Expand Down

0 comments on commit d36b7e7

Please # to comment.