read data from dev
This commit is contained in:
@@ -80,7 +80,8 @@ class TestRightExpReference : Fragment() {
|
||||
|
||||
}
|
||||
override fun onClickPositiveButton() {
|
||||
startTakingReference()
|
||||
// startTakingReference()
|
||||
fetchHemoCubeResult()
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -129,14 +130,14 @@ class TestRightExpReference : Fragment() {
|
||||
viewModel.progressBar.postValue(true)
|
||||
val fullReadOutput = StringBuilder()
|
||||
|
||||
(activity as TestRightActivity).mService.eventDrivenWrite(TestRightCommands.read,
|
||||
(activity as TestRightActivity).mService.eventDrivenWrite2(
|
||||
object : UsbServiceListener {
|
||||
override fun onUsbRead(data: ByteArray?) {
|
||||
Log.d("mariya", data.toString())
|
||||
data?.let {
|
||||
val stringData = String(it)
|
||||
fullReadOutput.append(stringData)
|
||||
Log.d(TAG, "fullReadOutput = $fullReadOutput")
|
||||
Log.d("mariya", "fullReadOutput = $fullReadOutput")
|
||||
|
||||
if (stringData.contains("OK", true)) {
|
||||
Log.d(
|
||||
|
||||
Reference in New Issue
Block a user