diff --git a/rileylink/src/main/java/info/nightscout/androidaps/plugins/pump/common/hw/rileylink/dialog/RileyLinkStatusGeneralFragment.java b/rileylink/src/main/java/info/nightscout/androidaps/plugins/pump/common/hw/rileylink/dialog/RileyLinkStatusGeneralFragment.java index 1e6044f16d..df240c2acb 100644 --- a/rileylink/src/main/java/info/nightscout/androidaps/plugins/pump/common/hw/rileylink/dialog/RileyLinkStatusGeneralFragment.java +++ b/rileylink/src/main/java/info/nightscout/androidaps/plugins/pump/common/hw/rileylink/dialog/RileyLinkStatusGeneralFragment.java @@ -106,9 +106,9 @@ public class RileyLinkStatusGeneralFragment extends DaggerFragment implements Re this.connectionError.setText(rileyLinkError == null ? PLACEHOLDER : resourceHelper.gs(rileyLinkError.getResourceId(targetDevice))); - if (rileyLinkServiceData.isOrange) { + if (rileyLinkServiceData.isOrange && rileyLinkServiceData.versionOrangeFirmware!=null) { this.firmwareVersion.setText(resourceHelper.gs(R.string.rileylink_firmware_version_value_orange, - Optional.ofNullable(rileyLinkServiceData.versionOrangeFirmware).orElse(PLACEHOLDER), + rileyLinkServiceData.versionOrangeFirmware, Optional.ofNullable(rileyLinkServiceData.versionOrangeHardware).orElse(PLACEHOLDER))); } else { this.firmwareVersion.setText(resourceHelper.gs(R.string.rileylink_firmware_version_value, diff --git a/rileylink/src/main/res/values/strings.xml b/rileylink/src/main/res/values/strings.xml index 54a736f433..c8ef385aa2 100644 --- a/rileylink/src/main/res/values/strings.xml +++ b/rileylink/src/main/res/values/strings.xml @@ -45,7 +45,7 @@ Last Device Contact: Firmware Version: BLE113: %1$s\nCC110: %2$s - FW: %1$s\nHW: %2$s + Fw: %1$s\nHw: %2$s Pump Serial Number: Pump Frequency: %1$.2f MHz