summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakshay-c2018-11-19 10:14:14 +0530
committerakshay-c2018-11-19 10:14:14 +0530
commitdec9dccf6516fab2c239f9479cb2cc9e002ce6a9 (patch)
tree706ed5658e314bac3c014f25bfd7e51398dd9922
parent2459016302affaa26b23bf8df69da1092cf7b75a (diff)
downloadLDMicroGtk-dec9dccf6516fab2c239f9479cb2cc9e002ce6a9.tar.gz
LDMicroGtk-dec9dccf6516fab2c239f9479cb2cc9e002ce6a9.tar.bz2
LDMicroGtk-dec9dccf6516fab2c239f9479cb2cc9e002ce6a9.zip
Resolved UART issue
-rw-r--r--ldmicro/CMakeLists.txt1
-rw-r--r--ldmicro/maincontrols.cpp7
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;