Skip to content

Commit 71c6cdc

Browse files
committed
Use puts() for startup message; include cstdio
Replace display.TextStatus(...) with a simple puts("Running\n"); and add an #include <cstdio> at the top of main.cpp. Simplifies the startup logging to use stdout instead of the display API.
1 parent d906669 commit 71c6cdc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • gd32_emac_artnet_dmx_multi/firmware

gd32_emac_artnet_dmx_multi/firmware/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
* THE SOFTWARE.
2424
*/
2525

26+
#include <cstdio>
27+
2628
#include "gd32/hal.h"
2729
#include "watchdog.h"
2830
#include "network.h"
@@ -99,7 +101,7 @@ int main() // NOLINT
99101

100102
dmxnode_node.Start();
101103

102-
display.TextStatus(DmxNodeMsgConst::STARTED, console::Colours::kConsoleGreen);
104+
puts("Running\n");
103105

104106
watchdog::Init();
105107

0 commit comments

Comments
 (0)