1
0
mirror of https://github.com/oliexdev/openScale.git synced 2025-08-13 20:24:14 +02:00

300 ms delay added to step 0 (#983)

This commit is contained in:
palmtop
2024-05-20 11:32:08 +02:00
committed by GitHub
parent d54e55cd4c
commit 446995ce4c

View File

@@ -70,6 +70,11 @@ public class BluetoothYunmaiSE_Mini extends BluetoothCommunication {
user_add_or_query[user_add_or_query.length - 1] =
xorChecksum(user_add_or_query, 1, user_add_or_query.length - 1);
writeBytes(WEIGHT_CMD_SERVICE, WEIGHT_CMD_CHARACTERISTIC, user_add_or_query);
try {
Thread.sleep(300);
}
catch (InterruptedException e)
{}
break;
case 1:
byte[] unixTime = Converters.toInt32Be(new Date().getTime() / 1000);