Skip to content

Commit 77561d1

Browse files
authored
Fixed python code generator for OpMode __init__ method definition. (#252)
1 parent 29e04a8 commit 77561d1

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
@@ -456,7 +456,7 @@ export const pythonFromBlock = function (
456456
}
457457

458458
if (generator.getModuleType() === storageModule.ModuleType.OPMODE && block.mrcPythonMethodName === '__init__') {
459-
paramString = 'robot';
459+
paramString += ', robot';
460460
}
461461

462462
if (params.length != 0) {

0 commit comments

Comments
 (0)