eric6/MicroPython/MicroPythonCommandsInterface.py

changeset 7208
d30ac02a5f04
parent 7174
de8175253dfc
child 7229
53054eb5b15a
--- a/eric6/MicroPython/MicroPythonCommandsInterface.py	Mon Sep 02 19:29:26 2019 +0200
+++ b/eric6/MicroPython/MicroPythonCommandsInterface.py	Wed Sep 04 20:01:53 2019 +0200
@@ -773,7 +773,11 @@
                 " (rtc_time[6],) + rtc_time[3:6] + (0,)",
                 "                rtc.datetime(clock_time)",
                 "            except Exception:",  # ESP32 uses rtc.init()
-                "                clock_time = rtc_time[:3] +"
+                "                import os",
+                "                if 'LoBo' in os.uname()[0]:",  # LoBo MPy
+                "                    clock_time = rtc_time + (0,)",
+                "                else:",
+                "                    clock_time = rtc_time[:3] +"
                 " (rtc_time[6],) + rtc_time[3:6] + (0,)",
                 "                rtc.init(clock_time)",
                 "            del __machine_",

eric ide

mercurial