wear actionstringhandler use correct actualBG()
This commit is contained in:
parent
638b9c263c
commit
5ea7913a41
1 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@ import info.nightscout.androidaps.Config;
|
|||
import info.nightscout.androidaps.Constants;
|
||||
import info.nightscout.androidaps.MainApp;
|
||||
import info.nightscout.androidaps.R;
|
||||
import info.nightscout.androidaps.data.GlucoseStatus;
|
||||
import info.nightscout.androidaps.data.PumpEnactResult;
|
||||
import info.nightscout.androidaps.db.BgReading;
|
||||
import info.nightscout.androidaps.db.TempTarget;
|
||||
|
@ -196,7 +197,7 @@ public class ActionStringHandler {
|
|||
sendError("No profile found!"); return;
|
||||
}
|
||||
|
||||
BgReading bgReading = MainApp.getDbHelper().actualBg();
|
||||
BgReading bgReading = GlucoseStatus.actualBg();
|
||||
if(bgReading==null && useBG){
|
||||
sendError("No recent BG to base calculation on!"); return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue