From ca60e1aa3eec460ba1521e099fac8614243be8b2 Mon Sep 17 00:00:00 2001 From: aatchison Date: Mon, 3 Jul 2017 19:44:05 +0000 Subject: [PATCH] re-arranged the if statement a bit --- __init__.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index 36da004..f9c5d92 100644 --- a/__init__.py +++ b/__init__.py @@ -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")