mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Fixing #1461: distance sensor should report 0-100 in steps of 10.
This commit is contained in:
parent
f9814a5f88
commit
d89020cfb1
1 changed files with 2 additions and 2 deletions
|
@ -521,7 +521,7 @@ class WeDo2 {
|
|||
cmd[6] = 0;
|
||||
cmd[7] = 0;
|
||||
cmd[8] = 0;
|
||||
cmd[9] = 0; // unit?
|
||||
cmd[9] = 0; // unit: raw
|
||||
cmd[10] = 1; // notifications enabled: true
|
||||
|
||||
this._send(UUID.INPUT_COMMAND, Base64Util.uint8ArrayToBase64(cmd))
|
||||
|
@ -542,7 +542,7 @@ class WeDo2 {
|
|||
cmd[6] = 0;
|
||||
cmd[7] = 0;
|
||||
cmd[8] = 0;
|
||||
cmd[9] = 0; // unit: ?
|
||||
cmd[9] = 1; // unit: percent
|
||||
cmd[10] = 1; // notifications enabled: true
|
||||
|
||||
this._send(UUID.INPUT_COMMAND, Base64Util.uint8ArrayToBase64(cmd))
|
||||
|
|
Loading…
Reference in a new issue