summaryrefslogtreecommitdiff
path: root/devel/msp430-debug-stack/files/patch-DLL430_v3_src_DLL430_OldApiV3.cpp
blob: 79d383ff867560331b041980208769ffaab181da (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
--- DLL430_v3/src/DLL430_OldApiV3.cpp.orig	2018-03-26 17:21:18.500487000 +0300
+++ DLL430_v3/src/DLL430_OldApiV3.cpp	2018-03-26 17:22:50.850255000 +0300
@@ -191,7 +191,7 @@
 			//With trace/variable watch enabled, give storage events on same trigger time to be reported
 			if (trace_storage.trControl == TR_ENABLE)
 			{
-				this_thread::sleep_for(chrono::milliseconds(100));
+				this_thread::sleep_for(std::chrono::milliseconds(100));
 			}
 			db_man->pausePolling();
 		}
@@ -330,7 +330,7 @@
 	catch (const std::runtime_error& e)
 	{
 #ifndef NDEBUG
-		ofstream("xml_error.log") << e.what() << endl;
+		std::ofstream("xml_error.log") << e.what() << endl;
 #endif
 		log(LogTarget::ERR, DEVICE_DB_ERR, e.what());
 		return false;
@@ -356,7 +356,7 @@
 	catch (const std::runtime_error& e)
 	{
 #ifndef NDEBUG
-		ofstream("xml_error.log") << e.what() << endl;
+		std::ofstream("xml_error.log") << e.what() << endl;
 #endif
 		log(LogTarget::ERR, DEVICE_DB_ERR, e.what());
 		return false;
@@ -1569,7 +1569,7 @@
 				log(LogTarget::ERR, ERASE_ERR, "");
 				return false;
 			}
-			this_thread::sleep_for(chrono::seconds(1));
+			this_thread::sleep_for(std::chrono::seconds(1));
 			return true;
 			
 		}
@@ -1583,7 +1583,7 @@
 			}
 			if (singleDevice)
 			{
-				this_thread::sleep_for(chrono::seconds(1));
+				this_thread::sleep_for(std::chrono::seconds(1));
 				return true;
 			}
 		}
@@ -1987,7 +1987,7 @@
 		if (devArchitecture != MSP432_M4)
 		{
 			db_man->resumePolling();
-			this_thread::sleep_for(chrono::milliseconds(500));
+			this_thread::sleep_for(std::chrono::milliseconds(500));
 			db_man->pausePolling();
 		}
 		if (!State(&state, true, &pCPUCycles))
@@ -3848,7 +3848,7 @@
 				int timeout = 50;
 				while (timeout-- && !this->Initialize(&port[0], &version))
 				{
-					this_thread::sleep_for(chrono::seconds(1));
+					this_thread::sleep_for(std::chrono::seconds(1));
 				}
 				if (!handle)
 				{
@@ -3873,7 +3873,7 @@
 #endif
 						UpdateLog.append("\n---------------------Firmware upate end--------------------------\n");
 
-						ofstream(logfile.c_str(), ios::app | ios::out) << UpdateLog;
+						std::ofstream(logfile.c_str(), ios::app | ios::out) << UpdateLog;
 					}
 				}
 			}
@@ -4272,7 +4272,7 @@
 
 	Run(FREE_RUN, true);					// start execution of loader code
 
-	this_thread::sleep_for(chrono::seconds(15));
+	this_thread::sleep_for(std::chrono::seconds(15));
 
 	int32_t state;
 	int32_t pCPUCycles;