eric6/MicroPython/MicroPythonCommandsInterface.py

changeset 7321
3642cc5df144
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r 5f888d21ef3e -r 3642cc5df144 eric6/MicroPython/MicroPythonCommandsInterface.py
--- a/eric6/MicroPython/MicroPythonCommandsInterface.py	Wed Oct 30 19:47:55 2019 +0100
+++ b/eric6/MicroPython/MicroPythonCommandsInterface.py	Fri Nov 01 16:05:15 2019 +0100
@@ -760,7 +760,8 @@
                 "    try:",           # Pyboard (it doesn't have machine.RTC())
                 "        import pyb as __pyb_",
                 "        rtc = __pyb_.RTC()",
-                "        clock_time = rtc_time[:6] + (rtc_time[6] + 1, 0)",
+                "        clock_time = rtc_time[:3] +"
+                " (rtc_time[6] + 1,) + rtc_time[3:6] + (0,)",
                 "        rtc.datetime(clock_time)",
                 "        del __pyb_",
                 "    except Exception:",

eric ide

mercurial