Commit 74a196a1ad0d420e3283b17802130a466578be2c
1 parent
0727da7c
Exists in
dev
fixing weather page (renaming function in agentM.py)
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
src/core/pyros_django/monitoring/AgentM.py
... | ... | @@ -145,7 +145,10 @@ class AgentM(Agent): |
145 | 145 | ''' |
146 | 146 | |
147 | 147 | # @override |
148 | - def routine_process(self): | |
148 | + # previous name of function : routine_process | |
149 | + # Note : in Agent.py, routine_process_body seems to be the main function of routine of the agent | |
150 | + # We need to override routine_process_body and not routine_process | |
151 | + def routine_process_body(self): | |
149 | 152 | print("TODO: we recycle code") |
150 | 153 | status_plc = self.plcController.getStatus() |
151 | 154 | if self.parseNewStatus(status_plc): | ... | ... |