remove firmware check

This commit is contained in:
Milos Kozak 2017-10-03 18:45:54 +02:00
parent a5730cb982
commit 3a014949e9
4 changed files with 1 additions and 10 deletions

View file

@ -51,8 +51,6 @@ public class Notification {
public static final int TOAST_ALARM = 22;
public static final int WRONGBASALSTEP = 23;
public static final int BOLUS_DELIVERY_ERROR = 24;
public static final int UNSUPPORTED_FIRMWARE = 25;
public int id;
public Date date;

View file

@ -353,7 +353,7 @@ public class DanaRSPlugin implements PluginBase, PumpInterface, DanaRInterface,
@Override
public boolean isInitialized() {
return pump.lastConnection.getTime() > 0 && pump.protocol > 1;
return pump.lastConnection.getTime() > 0;
}
@Override

View file

@ -42,12 +42,6 @@ public class DanaRS_Packet_General_Get_Pump_Check extends DanaRS_Packet {
log.debug("Protocol: " + String.format("%02X ", pump.protocol));
log.debug("Product Code: " + String.format("%02X ", pump.productCode));
}
if (pump.protocol == 1) {
Notification notification = new Notification(Notification.UNSUPPORTED_FIRMWARE, MainApp.sResources.getString(R.string.unsupportedpumpfirmware), Notification.URGENT);
MainApp.bus().post(new EventNewNotification(notification));
} else {
MainApp.bus().post(new EventDismissNotification(Notification.UNSUPPORTED_FIRMWARE));
}
}
@Override

View file

@ -732,6 +732,5 @@
<string name="gettingtempbasalstatus">Getting temporary basal status</string>
<string name="gettingpumpsettings">Gettings pump settings</string>
<string name="gettingpumptime">Getting pump time</string>
<string name="unsupportedpumpfirmware">Unsupported pump firmware</string>
</resources>