Skip to content

Commit

Permalink
Force compares as string to handle boolean settings correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
hilary-luo committed Apr 16, 2024
1 parent 86364e8 commit 12bc520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion turtlebot4_setup/turtlebot4_setup
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Turtlebot4Setup():
if self.conf.get(option) == '' and self.initial_conf.get(option) == None or \
self.conf.get(option) == None and self.initial_conf.get(option) == '':
pass
elif (self.conf.get(option) != self.initial_conf.get(option)):
elif (str(self.conf.get(option)) != str(self.initial_conf.get(option))):
diff.append(option)

return diff
Expand Down

0 comments on commit 12bc520

Please sign in to comment.