V4.1.3a - fixed O2sat display in network data source

This commit is contained in:
Graham Jones
2023-02-03 20:38:15 +00:00
parent fe765169d4
commit f4e5db2a44
5 changed files with 11 additions and 2 deletions

Binary file not shown.

View File

@@ -3,7 +3,7 @@
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
package="uk.org.openseizuredetector" package="uk.org.openseizuredetector"
android:versionCode="115" android:versionCode="115"
android:versionName="4.1.3"> android:versionName="4.1.3a">
<!-- android:allowBackup="false" --> <!-- android:allowBackup="false" -->
<uses-permission android:name="android.permission.BLUETOOTH" /> <uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />

View File

@@ -123,7 +123,7 @@ public class SdData implements Parcelable {
/* /*
* Intialise this SdData object from a JSON String * Intialise this SdData object from a JSON String
* FIXME - add O2saturation with checking in case it is not included in the data *
*/ */
public boolean fromJSON(String jsonStr) { public boolean fromJSON(String jsonStr) {
Log.v(TAG, "fromJSON() - parsing jsonString - " + jsonStr); Log.v(TAG, "fromJSON() - parsing jsonString - " + jsonStr);
@@ -161,6 +161,13 @@ public class SdData implements Parcelable {
for (int i = 0; i < specArr.length(); i++) { for (int i = 0; i < specArr.length(); i++) {
simpleSpec[i] = specArr.optInt(i); simpleSpec[i] = specArr.optInt(i);
} }
try {
mO2Sat = jo.optDouble("o2Sat");
} catch (Exception e) {
Log.w(TAG,"Error parsing o2Sat value");
mO2Sat = -1;
}
haveData = true; haveData = true;
Log.v(TAG, "fromJSON(): sdData = " + this.toString()); Log.v(TAG, "fromJSON(): sdData = " + this.toString());
return true; return true;

View File

@@ -294,4 +294,5 @@
<string name="dataRetentionPeriodSummary">Okres (w dniach), przez który dane będą przechowywane i chronione przed usunięciem przez funkcję \'Automatyczne Czyszczenie Bazy Danych\'.</string> <string name="dataRetentionPeriodSummary">Okres (w dniach), przez który dane będą przechowywane i chronione przed usunięciem przez funkcję \'Automatyczne Czyszczenie Bazy Danych\'.</string>
<string name="LogNDATitle">Zapisuj Normalne Dzienne Aktywności (NDA)</string> <string name="LogNDATitle">Zapisuj Normalne Dzienne Aktywności (NDA)</string>
<string name="LogNDASummary">Cały czas rejestruj dane w systemie udostępniania danych, aby dostarczać w tle dane dotyczące \'NDA\', w celu zmniejszenia liczby fałszywych alarmów.</string> <string name="LogNDASummary">Cały czas rejestruj dane w systemie udostępniania danych, aby dostarczać w tle dane dotyczące \'NDA\', w celu zmniejszenia liczby fałszywych alarmów.</string>
<string name="cancelBtnTxt">Anuluj</string>
</resources> </resources>

View File

@@ -3,6 +3,7 @@
<string name="app_name">OpenSeizureDetector</string> <string name="app_name">OpenSeizureDetector</string>
<string name="changelog"> <string name="changelog">
"\n "\n
\nV4.1.3 - Fixed display of O2 Saturation in Network Data Source, and added Polish Translations by Jacek Błoniarz-Łuczak
\nV4.1.2 - Added Machine Learning (Artificial Intelligence) Detection Algorithm Option (CNN V0.24) and 'Normal Daily Activity (NDA) logging function \nV4.1.2 - Added Machine Learning (Artificial Intelligence) Detection Algorithm Option (CNN V0.24) and 'Normal Daily Activity (NDA) logging function
\nV4.0.7 - Improvements to Data Sharing data log manager screen. \nV4.0.7 - Improvements to Data Sharing data log manager screen.
- Introduced the &lt;b>Data Sharing&lt;/b> feature to allow users to share their seizure and false alarm data - Introduced the &lt;b>Data Sharing&lt;/b> feature to allow users to share their seizure and false alarm data