mirror of https://github.com/arendst/Tasmota.git
20 lines
377 B
C++
Executable File
20 lines
377 B
C++
Executable File
|
|
#include <Arduino.h>
|
|
|
|
#ifndef _AUDIOLOGGER_H
|
|
#define _AUDIOLOGGER_H
|
|
|
|
class DevNullOut: public Print
|
|
{
|
|
public:
|
|
virtual size_t write(uint8_t) { return 1; }
|
|
};
|
|
|
|
extern DevNullOut silencedLogger;
|
|
|
|
// Global `audioLogger` is initialized to &silencedLogger
|
|
// It can be initialized anytime to &Serial or any other Print:: derivative instance.
|
|
extern Print* audioLogger;
|
|
|
|
#endif
|