From d89020cfb12c2b1d117d6253dd8aeaf3fbe9e2af Mon Sep 17 00:00:00 2001 From: Evelyn Eastmond Date: Tue, 14 Aug 2018 11:12:36 -0400 Subject: [PATCH] Fixing #1461: distance sensor should report 0-100 in steps of 10. --- src/extensions/scratch3_wedo2/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/extensions/scratch3_wedo2/index.js b/src/extensions/scratch3_wedo2/index.js index 9d62603ba..442217a29 100644 --- a/src/extensions/scratch3_wedo2/index.js +++ b/src/extensions/scratch3_wedo2/index.js @@ -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))