Merge branch 'dev' of https://github.com/MilosKozak/AndroidAPS into dev
This commit is contained in:
commit
2e0f6e8914
3 changed files with 7 additions and 1 deletions
|
@ -79,6 +79,7 @@ public class NSClientService extends Service {
|
||||||
public static boolean isConnected = false;
|
public static boolean isConnected = false;
|
||||||
public static boolean hasWriteAuth = false;
|
public static boolean hasWriteAuth = false;
|
||||||
private static Integer dataCounter = 0;
|
private static Integer dataCounter = 0;
|
||||||
|
private static Integer connectCounter = 0;
|
||||||
|
|
||||||
|
|
||||||
public static String nightscoutVersionName = "";
|
public static String nightscoutVersionName = "";
|
||||||
|
@ -222,7 +223,8 @@ public class NSClientService extends Service {
|
||||||
private Emitter.Listener onConnect = new Emitter.Listener() {
|
private Emitter.Listener onConnect = new Emitter.Listener() {
|
||||||
@Override
|
@Override
|
||||||
public void call(Object... args) {
|
public void call(Object... args) {
|
||||||
MainApp.bus().post(new EventNSClientNewLog("NSCLIENT", "connect event. ID: " + mSocket.id()));
|
connectCounter++;
|
||||||
|
MainApp.bus().post(new EventNSClientNewLog("NSCLIENT", "connect #" + connectCounter + " event. ID: " + mSocket.id()));
|
||||||
sendAuthMessage(new NSAuthAck());
|
sendAuthMessage(new NSAuthAck());
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -720,6 +720,9 @@ public class OverviewFragment extends Fragment {
|
||||||
deltaView.setText("Δ " + NSProfile.toUnitsString(glucoseStatus.delta, glucoseStatus.delta * Constants.MGDL_TO_MMOLL, units) + " " + units);
|
deltaView.setText("Δ " + NSProfile.toUnitsString(glucoseStatus.delta, glucoseStatus.delta * Constants.MGDL_TO_MMOLL, units) + " " + units);
|
||||||
avgdeltaView.setText("øΔ15m: " + NSProfile.toUnitsString(glucoseStatus.short_avgdelta, glucoseStatus.short_avgdelta * Constants.MGDL_TO_MMOLL, units) +
|
avgdeltaView.setText("øΔ15m: " + NSProfile.toUnitsString(glucoseStatus.short_avgdelta, glucoseStatus.short_avgdelta * Constants.MGDL_TO_MMOLL, units) +
|
||||||
" øΔ40m: " + NSProfile.toUnitsString(glucoseStatus.long_avgdelta, glucoseStatus.long_avgdelta * Constants.MGDL_TO_MMOLL, units));
|
" øΔ40m: " + NSProfile.toUnitsString(glucoseStatus.long_avgdelta, glucoseStatus.long_avgdelta * Constants.MGDL_TO_MMOLL, units));
|
||||||
|
} else {
|
||||||
|
deltaView.setText("Δ " + MainApp.sResources.getString(R.string.notavailable));
|
||||||
|
avgdeltaView.setText("");
|
||||||
}
|
}
|
||||||
|
|
||||||
BgReading.units = profile.getUnits();
|
BgReading.units = profile.getUnits();
|
||||||
|
|
|
@ -541,4 +541,5 @@
|
||||||
<string name="wear_detailedIOB_title">Show detailed IOB</string>
|
<string name="wear_detailedIOB_title">Show detailed IOB</string>
|
||||||
<string name="wear_detailedIOB_summary">Break down IOB into bolus and basal IOB on the watchface</string>
|
<string name="wear_detailedIOB_summary">Break down IOB into bolus and basal IOB on the watchface</string>
|
||||||
<string name="nosuccess">not successful - please check phone</string>
|
<string name="nosuccess">not successful - please check phone</string>
|
||||||
|
<string name="notavailable">Not available</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
|
Loading…
Reference in a new issue