[code] Color the console history in grey when unloading Python.

Change-Id: I7f802ee5858e6a9944fd3f2455fac58106e2adeb
This commit is contained in:
Léa Saviot
2017-11-30 15:16:27 +01:00
parent ed2a17ad31
commit 7c4e5ec583

View File

@@ -55,6 +55,7 @@ bool ConsoleController::loadPythonEnvironment(bool autoImportScripts) {
void ConsoleController::unloadPythonEnvironment() {
if (pythonEnvironmentIsLoaded()) {
m_consoleStore.startNewSession();
MicroPython::deinit();
free(m_pythonHeap);
m_pythonHeap = nullptr;