+/* $Id$
+
+This file is part of the MSP Märklin suite
+Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa
+Distributed under the GPL
+*/
+
#include <iostream>
#include <msp/time/timer.h>
#include <msp/time/units.h>
cmd[0]=CMD_TURNOUT_STATUS;
cmd[1]=addr&0xFF;
cmd[2]=(addr>>8)&0xFF;
- control.command(string(cmd,3)).signal_done.connect(sigc::mem_fun(this, &Turnout::status_reply));
+ control.command(string(cmd, 3)).signal_done.connect(sigc::mem_fun(this, &Turnout::status_reply));
}
void Turnout::set_route(unsigned r)
cmd[2]|=0x40;
if(route==0)
cmd[2]|=0x80;
- control.command(string(cmd,3));
+ control.command(string(cmd, 3));
}
void Turnout::status_reply(Error err, const string &reply)