Skip to content

Commit

Permalink
gotoState with args in fsmTemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
darcato committed Feb 14, 2023
1 parent cd5e673 commit e03cee4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smlib/fsmTemplate.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ def setErrorStatus(self, errCod, errMsg):
if self._errm:
self._errm.put(errMsg)

def gotoState(self, state):
def gotoState(self, state, *args, **kwargs):
if self._stat:
self._stat.put(state)
return fsmBase.gotoState(self, state)
return fsmBase.gotoState(self, state, *args, **kwargs)

def gotoError(self, errCod, errMsg='default error message'):
self.logE("Error: %s" % errMsg)
Expand Down

0 comments on commit e03cee4

Please sign in to comment.