From b121189f368cb5d93045b20709ee9522796d62ec Mon Sep 17 00:00:00 2001 From: Matthew Wilbern <39929480+fatboychummy@users.noreply.github.com> Date: Sat, 11 Nov 2023 02:22:19 -0700 Subject: [PATCH] Include distance in GPS host response. --- .../main/resources/data/computercraft/lua/rom/programs/gps.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/gps.lua b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/gps.lua index 3a65fd8ae..ca6c06ee0 100644 --- a/projects/core/src/main/resources/data/computercraft/lua/rom/programs/gps.lua +++ b/projects/core/src/main/resources/data/computercraft/lua/rom/programs/gps.lua @@ -79,7 +79,7 @@ elseif sCommand == "host" then local sSide, sChannel, sReplyChannel, sMessage, nDistance = p1, p2, p3, p4, p5 if sSide == sModemSide and sChannel == gps.CHANNEL_GPS and sMessage == "PING" and nDistance then -- We received a ping message on the GPS channel, send a response - modem.transmit(sReplyChannel, gps.CHANNEL_GPS, { x, y, z }) + modem.transmit(sReplyChannel, gps.CHANNEL_GPS, { x, y, z, nDistance }) -- Print the number of requests handled nServed = nServed + 1