Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/robomaster/action.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,11 @@ def _update_action_state(self, proto_state):
self._changeto_state(ACTION_SUCCEEDED)
elif proto_state == 'error':
self._changeto_state(ACTION_FAILED)
self._failure_reason = proto_state
logger.error("TextAction: action failed ! resp: {0}".format(proto_state))
else:
self._changeto_state(ACTION_FAILED)
self._failure_reason = proto_state
logger.error("TextAction: action failed ! resp: {0}".format(proto_state))

def make_action_key(self):
Expand Down