negative abs warning

This commit is contained in:
Pritimay Sarkar
2023-10-29 15:23:00 +05:30
parent 81298f9634
commit 88aab7c527

View File

@@ -354,6 +354,14 @@ class HemoCubeFragment : Fragment() {
// }
// }
// }
if (led1Average < 0 || led2Average < 0) {
activity?.runOnUiThread{
binding.errorMessage.text = "Warning: Negative Abs. Retake Blank Reading"
binding.errorMessage.visibility = View.VISIBLE
}
}
DataHolder.hemoCubeTestData?.apply {
deviceId = deviceSerialNo
led1Buffer = led1BufferForDevice