AndroidAPS/app
Johannes Mockenhaupt d0405014b2
Don't loop with old BG value, don't loop twice for the same value.
Loop is potentially triggered twice when BG reading sent to NS comes back.
This should also deal with backfilled data coming in, since any previous
reading will be older than 9m, for which DatabaseHelper.actualBg()
returns null.

The previous approach to solve multiple invocations for the same value
added a isNew flag to EventNewBG, but since
DatabaseHelper.scheduleBgChange() drops excessive updates the event
carrying that flag is not guarantued to be delivered, resulting in
missed loop invocations. The approach taken now lets the receiver
of the event fully decide how to deal with it.

Should fix, or at least improve, #901, #671.
2018-04-21 14:28:47 +02:00
..
libs Support for TDDs 2018-04-06 21:39:42 +02:00
src Don't loop with old BG value, don't loop twice for the same value. 2018-04-21 14:28:47 +02:00
build.gradle 1.60e-dev 2018-04-20 22:14:54 +02:00
fabric.properties add bg language 2016-07-05 20:28:23 +02:00
proguard-rules.pro plugins refactoring 2016-08-05 23:54:03 +02:00