diff --git a/src/extensions/scratch3_boost/index.js b/src/extensions/scratch3_boost/index.js index cf460d5a..594009a2 100644 --- a/src/extensions/scratch3_boost/index.js +++ b/src/extensions/scratch3_boost/index.js @@ -1935,7 +1935,7 @@ class Scratch3BoostBlocks { log.warn('Asked for a motor position that doesnt exist!'); return false; } - if (portID && this._peripheral.motor(portID)) { + if (portID !== null && this._peripheral.motor(portID)) { let val = this._peripheral.motor(portID).position; // Boost motor A position direction is reversed by design // so we have to reverse the position here