wiring done, move to basic for real debugging

This commit is contained in:
Torsten Ruger
2021-07-04 19:32:01 +03:00
parent 8f32fb0c94
commit 2cb5cb0363
4 changed files with 12 additions and 8 deletions

View File

@ -7,7 +7,8 @@ class WsSerial{
public:
inline void print(const String& line){ println(line); }
inline void println(const String& line){
// enable debug the debugging Serial.println(line.c_str());
// enable debug the debugging
Serial.println(line.c_str());
if(debug.size() > 100 ) debug.pop_back();
debug.push_front(line);
}
@ -16,6 +17,7 @@ class WsSerial{
inline const String& first(){ return debug.front();};
inline void pop(){ return debug.pop_front();};
inline bool empty(){ return debug.empty();};
inline void clear(){ debug.clear();}
};
extern WsSerial debug_out;