Merge remote-tracking branch 'origin/Homocube' into Homocube
# Conflicts: # app/src/main/java/com/example/hpostesting/presentation/testRight/UsbService.kt
This commit is contained in:
@@ -76,7 +76,8 @@ class TestRightExpReference : Fragment() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
override fun onClickPositiveButton() {
|
override fun onClickPositiveButton() {
|
||||||
startTakingReference()
|
// startTakingReference()
|
||||||
|
fetchHemoCubeResult()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -125,14 +126,14 @@ class TestRightExpReference : Fragment() {
|
|||||||
viewModel.progressBar.postValue(true)
|
viewModel.progressBar.postValue(true)
|
||||||
val fullReadOutput = StringBuilder()
|
val fullReadOutput = StringBuilder()
|
||||||
|
|
||||||
(activity as TestRightActivity).mService.eventDrivenWrite(TestRightCommands.read,
|
(activity as TestRightActivity).mService.eventDrivenWrite2(
|
||||||
object : UsbServiceListener {
|
object : UsbServiceListener {
|
||||||
override fun onUsbRead(data: ByteArray?) {
|
override fun onUsbRead(data: ByteArray?) {
|
||||||
Log.d("mariya", data.toString())
|
Log.d("mariya", data.toString())
|
||||||
data?.let {
|
data?.let {
|
||||||
val stringData = String(it)
|
val stringData = String(it)
|
||||||
fullReadOutput.append(stringData)
|
fullReadOutput.append(stringData)
|
||||||
Log.d(TAG, "fullReadOutput = $fullReadOutput")
|
Log.d("mariya", "fullReadOutput = $fullReadOutput")
|
||||||
|
|
||||||
if (stringData.contains("OK", true)) {
|
if (stringData.contains("OK", true)) {
|
||||||
Log.d(
|
Log.d(
|
||||||
|
|||||||
Reference in New Issue
Block a user