1

remove logger from globals, use static

This commit is contained in:
2022-07-24 16:55:09 +02:00
parent 0d109727ac
commit 18e0a666c8
3 changed files with 1 additions and 3 deletions

View File

@ -28,7 +28,6 @@ Scheduler scheduler;
KeyEventManager kevman;
SerialOut serial;
Logger& logger = Logger::instance();
unsigned int total_mem; // RAM total
unsigned long systime = 0;

View File

@ -47,7 +47,6 @@ extern Scheduler scheduler;
extern KeyEventManager kevman;
extern SerialOut serial;
extern Logger& logger;
extern unsigned int total_mem; // RAM total
extern unsigned long systime; // wird all 10ms hochgezaehlt

View File

@ -6,7 +6,7 @@ void KeyEventListener::trigger(char c) {
}
char KeyEventListener::waitForKeyEvent() const {
logger << DEBUG << "KEvLis:: Thread with id: " << tid << " waiting for key event" << endl;
Logger::instance() << DEBUG << "KEvLis:: Thread with id: " << tid << " waiting for key event" << endl;
scheduler.block();
return this->lastChar; // This is only executed after thread is woken up by manager
}