v2.0.8 - check for errors interpreting settings sent from watch - indicative of incompatible watch app version installed.
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
OpenSeizureDetector Android App - Change Log
|
||||
============================================
|
||||
|
||||
V2.0.8 - 24 Aug 2016
|
||||
- Added checks for correct version of pebble watch app for compatibility with this
|
||||
Android App.
|
||||
|
||||
V2.0.7 - 18 Aug 2016
|
||||
- Added AnalysisPeriod setting to Pebble Datasource to change
|
||||
the period between data analyses (rather than the default 5 seconds
|
||||
|
||||
BIN
app/app-release-2.0.8.apk
Normal file
BIN
app/app-release-2.0.8.apk
Normal file
Binary file not shown.
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="uk.org.openseizuredetector"
|
||||
android:versionCode="28"
|
||||
android:versionName="2.0.7">
|
||||
android:versionCode="29"
|
||||
android:versionName="2.0.8">
|
||||
|
||||
<uses-sdk android:minSdkVersion="14" />
|
||||
|
||||
|
||||
@@ -412,6 +412,7 @@ public class SdDataSourcePebble extends SdDataSource {
|
||||
if (data.getUnsignedIntegerAsLong(KEY_DATA_TYPE)
|
||||
== DATA_TYPE_SETTINGS) {
|
||||
Log.v(TAG, "DATA_TYPE = Settings");
|
||||
try {
|
||||
mSdData.analysisPeriod = data.getUnsignedIntegerAsLong(KEY_SAMPLE_PERIOD);
|
||||
mSdData.alarmFreqMin = data.getUnsignedIntegerAsLong(KEY_ALARM_FREQ_MIN);
|
||||
mSdData.alarmFreqMax = data.getUnsignedIntegerAsLong(KEY_ALARM_FREQ_MAX);
|
||||
@@ -423,6 +424,13 @@ public class SdDataSourcePebble extends SdDataSource {
|
||||
mSdData.alarmRatioThresh = data.getUnsignedIntegerAsLong(KEY_ALARM_RATIO_THRESH);
|
||||
mSdData.batteryPc = data.getUnsignedIntegerAsLong(KEY_BATTERY_PC);
|
||||
mSdData.haveSettings = true;
|
||||
} catch (Exception ex) {
|
||||
mUtil.showToast("*** Error interpreting settings sent from watch - Please check you have "
|
||||
+ "the latest version of the watch app installed by using the OpenSeizureDetector "
|
||||
+ "menu to install the Watch App");
|
||||
mUtil.writeToSysLogFile("Error interpreting settings received from watch - wrong version "
|
||||
+ "of watch app installed?");
|
||||
}
|
||||
}
|
||||
if (data.getUnsignedIntegerAsLong(KEY_DATA_TYPE)
|
||||
== DATA_TYPE_RAW) {
|
||||
|
||||
Reference in New Issue
Block a user