Fri, 01 Nov 2019 16:05:15 +0100
MicroPython: corrected the time synchronisation for the PyBoard.
--- 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:",
--- a/eric6/MicroPython/MicroPythonWidget.py Wed Oct 30 19:47:55 2019 +0100 +++ b/eric6/MicroPython/MicroPythonWidget.py Fri Nov 01 16:05:15 2019 +0100 @@ -1109,6 +1109,7 @@ act.setEnabled(self.__connected) self.__superMenu.addAction( self.tr("Show Local Time"), self.__showLocalTime) + # TODO: add entry to show local and device time side-by-side self.__superMenu.addSeparator() if not Globals.isWindowsPlatform(): available = self.__mpyCrossAvailable()
--- a/eric6/MicroPython/PyBoardDevices.py Wed Oct 30 19:47:55 2019 +0100 +++ b/eric6/MicroPython/PyBoardDevices.py Fri Nov 01 16:05:15 2019 +0100 @@ -186,6 +186,7 @@ menu.addAction( self.tr("MicroPython Install Instructions"), self.__showInstallInstructions) + # TODO: add entry to flash a new firmware using dfu-util def __showInstallInstructions(self): """