fix RS response code

This commit is contained in:
Milos Kozak 2017-10-26 20:40:24 +02:00
parent 8b020d72cd
commit 26b216a8ee
3 changed files with 3 additions and 3 deletions

View file

@ -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) {

View file

@ -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 {

View file

@ -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 {