Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Build date from FPP Ping and DDP responses. #401

Merged
merged 2 commits into from Oct 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion ESPixelStick/src/input/InputDDP.cpp
Expand Up @@ -318,8 +318,9 @@ void c_InputDDP::ProcessReceivedQuery ()
DynamicJsonDocument JsonConfigDoc (2048);
JsonObject JsonConfig = JsonConfigDoc.createNestedObject (CN_config);
JsonConfig[CN_hostname] = config.hostname;
JsonConfig[CN_id] = config.id;
JsonConfig[CN_ip] = WiFi.localIP ().toString ();
JsonConfig[CN_version] = (VERSION + String (":") + BUILD_DATE);
JsonConfig[CN_version] = VERSION;
JsonConfig["hardwareType"] = FPP_VARIANT_NAME;
JsonConfig[CN_type] = FPP_TYPE_ID;
JsonConfig[CN_num_chan] = InputDataBufferSize;
Expand Down
4 changes: 2 additions & 2 deletions ESPixelStick/src/service/FPPDiscovery.cpp
Expand Up @@ -418,7 +418,7 @@ void c_FPPDiscovery::sendPingPacket (IPAddress destination)
uint32_t ip = static_cast<uint32_t>(WiFi.localIP ());
memcpy (packet.ipAddress, &ip, 4);
strcpy (packet.hostName, config.hostname.c_str ());
strcpy (packet.version, (VERSION + String (":") + BUILD_DATE).c_str ());
strcpy (packet.version, VERSION.c_str());
strcpy (packet.hardwareType, FPP_VARIANT_NAME.c_str());
packet.ranges[0] = 0;

Expand Down Expand Up @@ -754,7 +754,7 @@ void c_FPPDiscovery::GetSysInfoJSON (JsonObject & jsonResponse)
jsonResponse[CN_Platform] = CN_ESPixelStick;
jsonResponse[F ("Variant")] = FPP_VARIANT_NAME;
jsonResponse[F ("Mode")] = (true == AllowedToRemotePlayFiles()) ? CN_remote : CN_bridge;
jsonResponse[CN_Version] = VERSION + String (":") + BUILD_DATE;
jsonResponse[CN_Version] = VERSION;

const char* version = VERSION.c_str ();

Expand Down