X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fnetwork%2Fprotocol.cpp;h=cfbc0fdc2a1eac66c53205ef8475468129f33a60;hb=1ff06c5bc46a677fa389ef86c6b26664368f1653;hp=f8e13beb4ac5f4156780a415d9b24cecfd7be2fb;hpb=2fe7cbcb761487bc7409b93b372da6f8ab3c581e;p=r2c2.git diff --git a/source/network/protocol.cpp b/source/network/protocol.cpp index f8e13be..cfbc0fd 100644 --- a/source/network/protocol.cpp +++ b/source/network/protocol.cpp @@ -1,6 +1,6 @@ /* $Id$ -This file is part of the MSP Märklin suite +This file is part of R²C² Copyright © 2009 Mikkosoft Productions, Mikko Rasa Distributed under the GPL */ @@ -8,14 +8,14 @@ Distributed under the GPL #include "packets.h" #include "protocol.h" -namespace Marklin { +namespace R2C2 { Protocol::Protocol() { add() (&TrainInfoPacket::address) (&TrainInfoPacket::loco_type) (&TrainInfoPacket::name); - add() (&TrainSpeedPacket::address) - (&TrainSpeedPacket::speed) (&TrainSpeedPacket::reverse); + add() (&TrainControlPacket::address) + (&TrainControlPacket::control) (&TrainControlPacket::value); add() (&TrainFunctionPacket::address) (&TrainFunctionPacket::functions); add() (&TrainStatusPacket::address) @@ -26,4 +26,4 @@ Protocol::Protocol() add() (&ErrorPacket::message); } -} // namespace Marklin +} // namespace R2C2