py_ext/plc_python.c
changeset 851 666f5bdad301
parent 728 e0424e96e3fd
child 1288 adc79fc44079
--- a/py_ext/plc_python.c	Sat Oct 06 00:23:51 2012 +0200
+++ b/py_ext/plc_python.c	Mon Oct 15 17:05:19 2012 +0200
@@ -152,7 +152,7 @@
 	}
 }
 
-char* PythonIterator(char* result)
+char* PythonIterator(char* result, void** id)
 {
 	char* next_command;
 	PYTHON_EVAL* data__;
@@ -163,6 +163,7 @@
 	LockPython();
 	/* Get current FB */
 	data__ = EvalFBs[Current_Python_EvalFB];
+	*id=data__;
 	if(data__ && /* may be null at first run */
 	    __GET_VAR(data__->STATE) == PYTHON_FB_PROCESSING){ /* some answer awaited*/
 	   	/* If result not None */