瀏覽代碼

Update to new mqtt library

master
Dirk Alders 2 月之前
父節點
當前提交
1c17ad0bcb
共有 2 個文件被更改,包括 6 次插入3 次删除
  1. 1
    1
      mqtt
  2. 5
    2
      piface_function.py

+ 1
- 1
mqtt

@@ -1 +1 @@
1
-Subproject commit cf97fa066cdff0e2f7eda0ff4d3c8c0f59c3f2ec
1
+Subproject commit 14e56ccdbf6594f699b4afcfb4acafe9b899e914

+ 5
- 2
piface_function.py 查看文件

@@ -123,8 +123,11 @@ class pi_face(object):
123 123
         self._task_10ms.join()
124 124
 
125 125
     def stop(self):
126
-        self._task_10ms.stop()
127
-        self._task_10ms.join()
126
+        try:
127
+            self._task_10ms.stop()
128
+            self._task_10ms.join()
129
+        except AttributeError:
130
+            pass    # seems that there was an exception before init of task
128 131
         for i in range(0, 8):
129 132
             self.set_output(i, False)
130 133
         pifacedigitalio.deinit()

Loading…
取消
儲存