]> git.tdb.fi Git - r2c2.git/blobdiff - source/libmarklin/turnout.cpp
Style fixes, including:
[r2c2.git] / source / libmarklin / turnout.cpp
index a6e3f2d171739734e3a412cfb6ac9ec4436689a3..6f90d47fe1d904182e73284ef0e80662acb3c6e3 100644 (file)
@@ -23,7 +23,7 @@ Turnout::Turnout(Control &c, unsigned a):
        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)
@@ -46,7 +46,7 @@ void Turnout::command(bool on)
                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)