X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flibr2c2%2Fdriver.cpp;h=04df5f4e82465f9c8d57ab28b0e24ec222e122bb;hb=776b39dfb0896aa563a220bdbf0b044425629917;hp=22b241c61a5c8bf51faaa5101c8ed738d6483ddf;hpb=d15ac13f2e170f155b4bbd124df48400c339b644;p=r2c2.git diff --git a/source/libr2c2/driver.cpp b/source/libr2c2/driver.cpp index 22b241c..04df5f4 100644 --- a/source/libr2c2/driver.cpp +++ b/source/libr2c2/driver.cpp @@ -1,4 +1,4 @@ -#include +#include "arducontrol.h" #include "centralstation.h" #include "driver.h" #include "dummy.h" @@ -21,10 +21,12 @@ 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 Msp::InvalidParameterValue("Unknown driver"); + throw invalid_argument("Driver::create"); } } // namespace R2C2