From ecaae87b79f0c38f230673fac60ea65343df3c4f Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Tue, 9 Mar 2021 15:07:02 +0800 Subject: [PATCH] make screen optional --- src/plugins/NodeInfoPlugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/NodeInfoPlugin.cpp b/src/plugins/NodeInfoPlugin.cpp index f5f3ae194..5111d7b87 100644 --- a/src/plugins/NodeInfoPlugin.cpp +++ b/src/plugins/NodeInfoPlugin.cpp @@ -19,9 +19,11 @@ bool NodeInfoPlugin::handleReceivedProtobuf(const MeshPacket &mp, const User *pp // Show new nodes on LCD screen if (wasBroadcast) { String lcd = String("Joined: ") + p.long_name + "\n"; - screen->print(lcd.c_str()); + if(screen) + screen->print(lcd.c_str()); } + // DEBUG_MSG("did handleReceived\n"); return false; // Let others look at this message also if they want }