From 11e6123cc9fa95f0c394efc18754cd1be278a913 Mon Sep 17 00:00:00 2001 From: mazengfei <331023091@qq.com> Date: Tue, 10 Mar 2026 18:06:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9A=90=E8=97=8F=E6=B8=A9=E6=B9=BF=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../intelligent/shelves/activity/HomeActivity.kt | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/shuwei/intelligent/shelves/activity/HomeActivity.kt b/app/src/main/java/com/shuwei/intelligent/shelves/activity/HomeActivity.kt index 78ef3da..a03be83 100644 --- a/app/src/main/java/com/shuwei/intelligent/shelves/activity/HomeActivity.kt +++ b/app/src/main/java/com/shuwei/intelligent/shelves/activity/HomeActivity.kt @@ -124,7 +124,8 @@ class HomeActivity : BaseActivity() { setBackground() setContentView(binding.root) - updateLeftStatus("-°C / -%") +// updateLeftStatus("-°C / -%") + updateLeftStatus("") initRecyclerView() lifecycleScope.launch { @@ -237,7 +238,8 @@ class HomeActivity : BaseActivity() { } deviceName = data.data.deviceName - updateLeftStatus("$deviceName -°C / -%") +// updateLeftStatus("$deviceName -°C / -%") + updateLeftStatus("$deviceName") App.canteenId = data.data.placeId val tempList = data.data.containerGoodsList @@ -406,7 +408,8 @@ class HomeActivity : BaseActivity() { sendCmd(respCmd) //val tempC = HexUtils.signedHexToDec(data.take(4)) * 0.1 // updateLeftStatus("$deviceName ${"%.1f".format(tempC)}°C / -%") - updateLeftStatus("$deviceName -°C / -%") +// updateLeftStatus("$deviceName -°C / -%") + updateLeftStatus("$deviceName") //D6DADEDB1001015D020000000027001E00020000001E001C00B40000000000010000000100040000001900440003000F00000000000FFFE6000200010002FFD80044000300010005001E0001FFD80056001400280000000000000000008300090000003C00D2000000000000007F003700000000A100000031323136334238423134303233303456322E313100FFFF runOnUiThread { @@ -569,7 +572,8 @@ class HomeActivity : BaseActivity() { // val tempC = HexUtils.signedHexToDec(temperatureHex) * 0.1 - updateLeftStatus("$deviceName -°C / -%") +// updateLeftStatus("$deviceName -°C / -%") + updateLeftStatus("$deviceName") getWeightInfo( start = weightStartIndex,