adjust timing on setting profile

This commit is contained in:
Milos Kozak 2016-07-18 21:48:43 +02:00
parent 4aad8c1310
commit 1aa1af3d0c

View file

@ -377,8 +377,10 @@ public class ExecutionService extends Service {
double[] basal = buildDanaRProfileRecord(profile); double[] basal = buildDanaRProfileRecord(profile);
MsgSetBasalProfile msgSet = new MsgSetBasalProfile((byte) 0, basal); MsgSetBasalProfile msgSet = new MsgSetBasalProfile((byte) 0, basal);
mSerialIOThread.sendMessage(msgSet); mSerialIOThread.sendMessage(msgSet);
waitMsec(200);
MsgSetActivateBasalProfile msgActivate = new MsgSetActivateBasalProfile((byte) 0); MsgSetActivateBasalProfile msgActivate = new MsgSetActivateBasalProfile((byte) 0);
mSerialIOThread.sendMessage(msgActivate); mSerialIOThread.sendMessage(msgActivate);
waitMsec(200);
getPumpStatus(); getPumpStatus();
return true; return true;
} }