|
@@ -283,7 +283,7 @@ object BleCmdManager {
|
|
|
}
|
|
}
|
|
|
// TODO 缺少res处理
|
|
// TODO 缺少res处理
|
|
|
if (idx != total - 1) {
|
|
if (idx != total - 1) {
|
|
|
- getTicketStatusPart((idx + 1).toByteArray(), total.toByteArray(), byteArrayOf(0x01.toByte()), bleDevice, object : CustomBleWriteCallback() {
|
|
|
|
|
|
|
+ getTicketStatusPart(idx.toByteArray(), total.toByteArray(), byteArrayOf(0x00.toByte()), bleDevice, object : CustomBleWriteCallback() {
|
|
|
override fun onWriteSuccess(current: Int, total: Int, justWrite: ByteArray?) {
|
|
override fun onWriteSuccess(current: Int, total: Int, justWrite: ByteArray?) {
|
|
|
println("getTicketStatusPart success")
|
|
println("getTicketStatusPart success")
|
|
|
}
|
|
}
|