mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
More byte value updates, and change global index comments.
This commit is contained in:
parent
50c80a8abc
commit
5314be8310
1 changed files with 3 additions and 3 deletions
|
@ -759,7 +759,7 @@ class EV3 {
|
||||||
cmds[index + 3] = Ev3Value.DO_NOT_CHANGE_TYPE;
|
cmds[index + 3] = Ev3Value.DO_NOT_CHANGE_TYPE;
|
||||||
cmds[index + 4] = Ev3Mode[this._sensorPorts[i]];
|
cmds[index + 4] = Ev3Mode[this._sensorPorts[i]];
|
||||||
cmds[index + 5] = Ev3ByteValue.GLOBAL8;
|
cmds[index + 5] = Ev3ByteValue.GLOBAL8;
|
||||||
cmds[index + 6] = sensorCount * 4; // global index // TODO: document
|
cmds[index + 6] = sensorCount * 4; // GLOBAL INDEX
|
||||||
index += 7;
|
index += 7;
|
||||||
}
|
}
|
||||||
sensorCount++;
|
sensorCount++;
|
||||||
|
@ -770,8 +770,8 @@ class EV3 {
|
||||||
cmds[index + 0] = Ev3Opcode.OPOUTPUT_GET_COUNT;
|
cmds[index + 0] = Ev3Opcode.OPOUTPUT_GET_COUNT;
|
||||||
cmds[index + 1] = Ev3Value.LAYER;
|
cmds[index + 1] = Ev3Value.LAYER;
|
||||||
cmds[index + 2] = i; // PORT TODO: explain incorrect documentation as 'Output bit field'
|
cmds[index + 2] = i; // PORT TODO: explain incorrect documentation as 'Output bit field'
|
||||||
cmds[index + 3] = 225; // 0xE1 byte following TODO: document
|
cmds[index + 3] = Ev3ByteValue.GLOBAL8;
|
||||||
cmds[index + 4] = sensorCount * 4; // global index TODO: document
|
cmds[index + 4] = sensorCount * 4; // GLOBAL INDEX
|
||||||
index += 5;
|
index += 5;
|
||||||
sensorCount++;
|
sensorCount++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue