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