Skip to content

Commit 7a0d635

Browse files
committed
Pass robot to OpMode.__init__.
1 parent 0d1464e commit 7a0d635

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blocks/mrc_class_method_def.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ export const pythonFromBlock = function (
458458
xfix2 = xfix1;
459459
}
460460
if(block.mrcPythonMethodName == '__init__'){
461-
branch = generator.INDENT + 'super().__init__()\n' +
461+
branch = generator.INDENT + 'super().__init__(robot)\n' +
462462
generator.defineClassVariables() + branch;
463463
}
464464
if (returnValue) {

0 commit comments

Comments
 (0)