File tree Expand file tree Collapse file tree 3 files changed +2
-4
lines changed
plugins/sync/src/main/kotlin/app/aaps/plugins/sync Expand file tree Collapse file tree 3 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,8 @@ class NsIncomingDataProcessor @Inject constructor(
8888 */
8989 @Suppress(" SpellCheckingInspection" )
9090 fun processSgvs (sgvs : Any ): Boolean {
91+ // Objective0
92+ sp.putBoolean(app.aaps.core.utils.R .string.key_objectives_bg_is_available_in_ns, true )
9193
9294 if (! nsClientSource.isEnabled() && ! sp.getBoolean(app.aaps.core.utils.R .string.key_ns_receive_cgm, false )) return false
9395
Original file line number Diff line number Diff line change @@ -561,8 +561,6 @@ class NSClientService : DaggerService() {
561561 val sgvs = data.getJSONArray(" sgvs" )
562562 if (sgvs.length() > 0 ) {
563563 rxBus.send(EventNSClientNewLog (" ◄ DATA" , " received " + sgvs.length() + " sgvs" ))
564- // Objective0
565- sp.putBoolean(app.aaps.core.utils.R .string.key_objectives_bg_is_available_in_ns, true )
566564 nsIncomingDataProcessor.processSgvs(sgvs)
567565 storeDataForDb.storeGlucoseValuesToDb()
568566 }
Original file line number Diff line number Diff line change @@ -61,8 +61,6 @@ class LoadBgWorker(
6161 if (sgvs.isNotEmpty()) {
6262 val action = if (isFirstLoad) " RCV-F" else " RCV"
6363 rxBus.send(EventNSClientNewLog (" ◄ $action " , " ${sgvs.size} SVGs from ${dateUtil.dateAndTimeAndSecondsString(lastLoaded)} " ))
64- // Objective0
65- sp.putBoolean(app.aaps.core.utils.R .string.key_objectives_bg_is_available_in_ns, true )
6664 // Schedule processing of fetched data and continue of loading
6765 continueLoading = response.code != 304 && nsIncomingDataProcessor.processSgvs(sgvs)
6866 } else {
You can’t perform that action at this time.
0 commit comments