Fixing #1461: distance sensor should report 0-100 in steps of 10.

This commit is contained in:
Evelyn Eastmond 2018-08-14 11:12:36 -04:00
parent f9814a5f88
commit d89020cfb1

View file

@ -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))