make screen optional

This commit is contained in:
Kevin Hester 2021-03-09 15:07:02 +08:00
parent 5835abbcf6
commit ecaae87b79

View File

@ -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
}