Skip to content

Commit

Permalink
bug fix with previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
vchu committed Nov 8, 2016
1 parent e3027ff commit 3e5780f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def __init__(self, commandBuffSize=10, init_node=True):
# Flags for starting/stopping the node
self.spinning = False
self.last_command_fresh = False
self.last_command = None
self.last_ts = None
self.last_string = None

Expand Down Expand Up @@ -130,7 +131,7 @@ def get_last_command(self, req=None):
if not self.leave_command_flag:

# returns a service request error
if self.last_command_fresh:
if not self.last_command_fresh:
return None

# The command hasn't been ask for before
Expand Down

0 comments on commit 3e5780f

Please sign in to comment.