From dec9dccf6516fab2c239f9479cb2cc9e002ce6a9 Mon Sep 17 00:00:00 2001 From: akshay-c Date: Mon, 19 Nov 2018 10:14:14 +0530 Subject: Resolved UART issue --- ldmicro/CMakeLists.txt | 1 + ldmicro/maincontrols.cpp | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ldmicro/CMakeLists.txt b/ldmicro/CMakeLists.txt index 49d8405..8175484 100644 --- a/ldmicro/CMakeLists.txt +++ b/ldmicro/CMakeLists.txt @@ -27,6 +27,7 @@ ENDIF (MSVC) IF(UNIX) MESSAGE( STATUS "Initializing.." ) add_definitions ("-w") + add_definitions ("-g") add_definitions(-D__UNIX__) add_definitions(-DLDLANG_EN) use_cxx11() diff --git a/ldmicro/maincontrols.cpp b/ldmicro/maincontrols.cpp index 11795fc..073f77f 100644 --- a/ldmicro/maincontrols.cpp +++ b/ldmicro/maincontrols.cpp @@ -933,12 +933,13 @@ void ToggleSimulationMode(void) CheckMenuItem(SimulateMenu, SimulationModeMenu, MF_CHECKED); - ClearSimulationData(); // simulation.cpp, ldmicro.h - // Recheck InSimulationMode, because there could have been a Compile - // error, which would have kicked us out of simulation mode. if(UartFunctionUsed() && InSimulationMode) { ShowUartSimulationWindow(); // simulate.cpp } + + ClearSimulationData(); // simulation.cpp, ldmicro.h + // Recheck InSimulationMode, because there could have been a Compile + // error, which would have kicked us out of simulation mode. } else { RealTimeSimulationRunning = FALSE; -- cgit