changes related to Limit switch added for start buffer only
This commit is contained in:
@@ -431,7 +431,7 @@ class HemoCubeFragment : Fragment() {
|
||||
(resultData.contains("#RC") && this.testStatusCode < TestStatus.EPROM_ADC_RETRIEVAL_COMPLETED.code) -> {
|
||||
this.testStatusCode = TestStatus.EPROM_ADC_RETRIEVAL_COMPLETED.code
|
||||
hemoCubeViewModel.messages.postValue("EPROM ADC Loaded")
|
||||
checkCuvettePresence()
|
||||
//checkCuvettePresence()
|
||||
showStartBufferButton()
|
||||
}
|
||||
|
||||
@@ -439,6 +439,7 @@ class HemoCubeFragment : Fragment() {
|
||||
hemoCubeViewModel.messages.postValue(getString(R.string.cuvette_present))
|
||||
this.testStatusCode = TestStatus.CUVETTE_PRESENT.code
|
||||
checkCuvette = true
|
||||
showStartBufferButton()
|
||||
}
|
||||
resultData.contains("#AIN") && this.testStatusCode <= TestStatus.CUVETTE_ABSENT.code -> {
|
||||
hemoCubeViewModel.messages.postValue(getString(R.string.cuvette_absent))
|
||||
@@ -456,6 +457,7 @@ class HemoCubeFragment : Fragment() {
|
||||
binding.tvSubtitle4.text = getString(R.string.buffer_completed)
|
||||
binding.btnSamplestart.visibility = View.VISIBLE
|
||||
}
|
||||
checkCuvette = false
|
||||
}
|
||||
|
||||
(resultData.contains("#SS") || resultData.contains("#SS1")) && this.testStatusCode < TestStatus.SAMPLE_STARTED.code -> {
|
||||
@@ -626,6 +628,7 @@ class HemoCubeFragment : Fragment() {
|
||||
|
||||
private fun showRetryButtonForCuvette() {
|
||||
activity?.runOnUiThread {
|
||||
binding.btnPlacebuffer.visibility = View.GONE
|
||||
binding.btnRetryCheckCuvette.visibility = View.VISIBLE
|
||||
}
|
||||
}
|
||||
@@ -720,7 +723,7 @@ class HemoCubeFragment : Fragment() {
|
||||
|
||||
binding.btnPlacebuffer.visibility = View.VISIBLE
|
||||
}
|
||||
hemoCubeViewModel.messages.postValue(getString(R.string.start))
|
||||
// hemoCubeViewModel.messages.postValue(getString(R.string.start))
|
||||
}
|
||||
|
||||
fun extractV1HardwareId(input: String): String? {
|
||||
|
||||
@@ -275,7 +275,7 @@
|
||||
<string name="ok">OK</string>
|
||||
<string name="action_activity">Activities</string>
|
||||
<string name="check_cuvette">Checking cuvette presence</string>
|
||||
<string name="cuvette_present">Cuvette present</string>
|
||||
<string name="cuvette_present">Cuvette present , you can start the test</string>
|
||||
<string name="cuvette_absent">Cuvette is absent , please place the cuvette</string>
|
||||
<string name="retry">Retry</string>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user