]> git.tdb.fi Git - r2c2.git/blobdiff - source/engineer/routerpanel.cpp
Provide some telemetry values from ArduControl
[r2c2.git] / source / engineer / routerpanel.cpp
index 1935bbed1273d6525d5f7a64c4f6b7968c61ed40..30857ceb7f9b0980de21ed0fce8e6fcc4b5493ef 100644 (file)
@@ -95,7 +95,7 @@ void RouterPanel::button_press(int x, int y, unsigned btn)
                goto_highlight = 0;
 
                if(goto_target && btn==1)
-                       train.ai_message(TrainAI::Message("set-destination-block", goto_target));
+                       train.ai_message(TrainAI::Message("set-destination", static_cast<const TrackChain *>(goto_target)));
        }
 }