fix RS response code
This commit is contained in:
parent
8b020d72cd
commit
26b216a8ee
|
@ -254,7 +254,7 @@ public class NSDeviceStatus {
|
|||
long clockEnacted = 0L;
|
||||
|
||||
JSONObject suggested = null;
|
||||
JSONObject enacted = null;
|
||||
public JSONObject enacted = null;
|
||||
}
|
||||
|
||||
public void updateOpenApsData(JSONObject object) {
|
||||
|
|
|
@ -51,7 +51,7 @@ public class DanaRS_Packet_APS_Basal_Set_Temporary_Basal extends DanaRS_Packet {
|
|||
@Override
|
||||
public void handleMessage(byte[] data) {
|
||||
int result = byteArrayToInt(getBytes(data, DATA_START, 1));
|
||||
if (result != 1) {
|
||||
if (result != 0) {
|
||||
failed = true;
|
||||
log.error("Set APS temp basal start result: " + result + " FAILED!!!");
|
||||
} else {
|
||||
|
|
|
@ -61,7 +61,7 @@ public class DanaRS_Packet_APS_Set_Event_History extends DanaRS_Packet {
|
|||
@Override
|
||||
public void handleMessage(byte[] data) {
|
||||
int result = intFromBuff(data, 0, 1);
|
||||
if (result != 1) {
|
||||
if (result != 0) {
|
||||
failed = true;
|
||||
log.error("Set history entry result: " + result + " FAILED!!!");
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue