We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5acb0b4 commit 6295d48Copy full SHA for 6295d48
1 file changed
examples/arduino/SyslibLoggingExample/SyslibLoggingExample.ino
@@ -1,14 +1,7 @@
1
#include <Arduino.h>
2
#include <pypilot_syslib.hpp>
3
4
-class SerialLogSink : public pypilot_syslib::LogSink {
5
-public:
6
- void write(const pypilot_syslib::LogRecord& record) override {
7
- Serial.println(record.message ? record.message : "");
8
- }
9
-};
10
-
11
-SerialLogSink sink;
+pypilot_syslib::ArduinoSerialLogSink sink(Serial);
12
pypilot_syslib::Logger logger(&sink);
13
14
void setup() {
0 commit comments