From f3d50dbe5ab0c2be6821a7ccdebb49f03c00c55f Mon Sep 17 00:00:00 2001 From: Evelyn Eastmond Date: Fri, 14 Jun 2019 12:17:19 -0400 Subject: [PATCH] Add global var index 0 value to enum. --- src/extensions/scratch3_ev3/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/extensions/scratch3_ev3/index.js b/src/extensions/scratch3_ev3/index.js index cd9513baa..4bea1bb17 100644 --- a/src/extensions/scratch3_ev3/index.js +++ b/src/extensions/scratch3_ev3/index.js @@ -79,7 +79,8 @@ const Ev3ByteValue = { NUM8: 0x81, // = 0b1000-001 = 1 byte to follow NUM16: 0x82, // = 0b1000-010 = 2 bytes to follow NUM32: 0x83, // = 0b1000-011 = 4 bytes to follow - GLOBAL8: 0xE1 // = 0b1110-001 = size of global var - 1 byte to follow + GLOBAL8: 0xE1, // = 0b1110-001 = size of global var - 1 byte to follow + GLOBAL_INDEX_0: 0x20 // = 0b00100000 = global var index "0" }; /** @@ -738,7 +739,7 @@ class EV3 { cmds[2] = 33; // 0x21 ARRAY // TODO: document cmds[3] = 96; // 0x60 CHANGED // TODO: document cmds[4] = Ev3ByteValue.GLOBAL8; - cmds[5] = 32; // 0x20 global var index "0" 0b00100000 // TODO: document + cmds[5] = Ev3ByteValue.GLOBAL_INDEX_0; // Command and payload lengths allocation = 33;