Skip to content

Commit

Permalink
Esel 2.4.0
Browse files Browse the repository at this point in the history
* Sending values every ~20sec
* Better startup after Transmitter paused (e.g. for charging)
* Feature for sending constant BG values: can be used for debugging even without an CGM
  • Loading branch information
BernhardRo committed Feb 17, 2022
1 parent e933664 commit 03c348a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 2 deletions.
Binary file removed apk/debug/esel233_2.apk
Binary file not shown.
Binary file renamed apk/debug/app-debug.apk → apk/debug/esel_240.apk
Binary file not shown.
Binary file renamed apk/debug/esel233.apk → apk/esel_240.apk
Binary file not shown.
5 changes: 3 additions & 2 deletions app/src/main/java/esel/esel/esel/receivers/ReadReceiver.java
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public int broadcastData(Context context, long lastReadingTime, boolean smoothEn
//ToastUtils.makeToast("DB not readable!");
//wl.release();

return result;
//return result;
}

for (int i = 0; i < valueArray.size(); i++) {
Expand All @@ -192,7 +192,8 @@ public int broadcastData(Context context, long lastReadingTime, boolean smoothEn
futureValue = true;
}

if (newValue && !futureValue) {
//if (newValue && !futureValue) {
if (!futureValue) {
int oldValue = SP.getInt("lastReadingValue", -1);
long sgvTime = sgv.timestamp;
//check if old value is not older than 17min
Expand Down

0 comments on commit 03c348a

Please sign in to comment.