Skip to content

Commit

Permalink
300 ms delay added to step 0 (#983)
Browse files Browse the repository at this point in the history
  • Loading branch information
palmtop committed May 20, 2024
1 parent d54e55c commit 446995c
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ protected boolean onNextStep(int stepNr) {
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);
Expand Down

0 comments on commit 446995c

Please sign in to comment.