Fixed issue with O2sat data not being recorded to data sharing database - V4.0.6

This commit is contained in:
Graham Jones
2022-06-04 23:10:43 +01:00
parent a66709e5ba
commit 443aa67067
5 changed files with 5 additions and 4 deletions

View File

@@ -272,7 +272,7 @@ public abstract class SdDataSource {
mSdData.mHR = -1;
}
try {
mSdData.mO2Sat = dataObject.getDouble("O2Sat");
mSdData.mO2Sat = dataObject.getDouble("O2sat");
} catch (JSONException e) {
// if we get 'null' O2 Saturation (For example if the oxygen sensor is not working)
mSdData.mO2Sat = -1;