mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-07-26 20:32:04 +08:00
28c034d367
date: 2024-06-11T01:36:39 master commit: f8cb04e4a8b032b72a909f68b808a50936184bee
40 lines
635 B
Diff
40 lines
635 B
Diff
diff --git a/src/logger.cpp b/src/logger.cpp
|
|
index a63c6dd..a1d9860 100644
|
|
--- a/src/logger.cpp
|
|
+++ b/src/logger.cpp
|
|
@@ -24,34 +24,22 @@ logger::~logger()
|
|
|
|
void logger::print(string str)
|
|
{
|
|
- cout << str;
|
|
- cout.flush();
|
|
}
|
|
|
|
void logger::print(double val)
|
|
{
|
|
- cout << setprecision(2) << fixed;
|
|
- cout << val;
|
|
- cout.flush();
|
|
}
|
|
|
|
void logger::print(float val)
|
|
{
|
|
- cout << setprecision(2) << fixed;
|
|
- cout << val;
|
|
- cout.flush();
|
|
}
|
|
|
|
void logger::print(int val)
|
|
{
|
|
- cout << val;
|
|
- cout.flush();
|
|
}
|
|
|
|
void logger::print(unsigned int val)
|
|
{
|
|
- cout << val;
|
|
- cout.flush();
|
|
}
|
|
|
|
void logger::xmlOpenTag(string tag)
|