Skip to content
Snippets Groups Projects
Commit 0e3fb96f authored by Luca Erbetta's avatar Luca Erbetta :rocket:
Browse files

[ScreenManager] Display warning if DEBUG is defined

parent 7883e6e6
No related branches found
No related tags found
No related merge requests found
......@@ -32,9 +32,8 @@
using namespace miosix;
using namespace mxgui;
using std::string;
using miosix::Thread;
using std::string;
const int MARGIN = 5;
const int INTERSPACE = 13;
......@@ -320,8 +319,11 @@ void ScreenManager::drawSensorSamples()
void ScreenManager::drawSystemStats()
{
sprintf(buffer, "CpuUsage: %4.1f Worst stack:%2d %6d bytes",
cpu_usage, min_stack.thread_id, min_stack.abs_free_stack);
#ifdef DEBUG
writeLine(21, 0, "DEBUG BUILD. DO NOT FLY.", white, red);
#endif
sprintf(buffer, "CpuUsage: %4.1f Worst stack:%2d %6d bytes", cpu_usage,
min_stack.thread_id, min_stack.abs_free_stack);
writeLine(23, 0, buffer);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment