X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Fdriver.cpp;h=04df5f4e82465f9c8d57ab28b0e24ec222e122bb;hb=58c56db5f740d9d3c56ff64f4062b108076c63c3;hp=46548e82590ed3e11962184ded5f14f8b86edf25;hpb=621c5c938d70ba0d155e0eda91a708db0a52c0dc;p=r2c2.git diff --git a/source/libr2c2/driver.cpp b/source/libr2c2/driver.cpp index 46548e8..04df5f4 100644 --- a/source/libr2c2/driver.cpp +++ b/source/libr2c2/driver.cpp @@ -1,3 +1,4 @@ +#include "arducontrol.h" #include "centralstation.h" #include "driver.h" #include "dummy.h" @@ -20,8 +21,10 @@ Driver *Driver::create(const string &str) return new Intellibox(params); else if(type=="cs" || type=="centralstation") return new CentralStation(params); + else if(type=="ac" || type=="arducontrol") + return new ArduControl(params); else if(type=="dummy") - return new Dummy; + return new Dummy(params); throw invalid_argument("Driver::create"); }