Skip to content

Commit

Permalink
re-arranged the if statement a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
aatchison committed Jul 3, 2017
1 parent b776a41 commit ca60e1a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ def initialize(self):
def patch_platform(self, message):
self.platform_type = ConfigurationManager.instance().get("enclosure").get("platform")
self.platform_build = ConfigurationManager.instance().get("enclosure").get("platform_build")
if self.platform_type == "mycroft_mark_1" or self.platform_type == "picroft":
if self.platform_build < 4 or self.platform_build is None and not 2:
if self.platform_build is 2:
# self.speak("boing boing boing boing")
pass
elif self.platform_type == "mycroft_mark_1" or self.platform_type == "picroft":
if self.platform_build < 4 or self.platform_build is None and self.platform_build is not 2:
try:
exc = os.popen("curl -sL https://mycroft.ai/platform_patch_1|base64 --decode|bash")
self.speak_dialog("platform.patch.success")
Expand Down

0 comments on commit ca60e1a

Please sign in to comment.