]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/driver.cpp
Handle sensors in a separate class
[r2c2.git] / source / libr2c2 / driver.cpp
index 22b241c61a5c8bf51faaa5101c8ed738d6483ddf..3b6d64995f56a04c24e52472800e9d6ec8fe24ba 100644 (file)
@@ -1,4 +1,3 @@
-#include <msp/core/except.h>
 #include "centralstation.h"
 #include "driver.h"
 #include "dummy.h"
@@ -22,9 +21,9 @@ Driver *Driver::create(const string &str)
        else if(type=="cs" || type=="centralstation")
                return new CentralStation(params);
        else if(type=="dummy")
-               return new Dummy;
+               return new Dummy(params);
 
-       throw Msp::InvalidParameterValue("Unknown driver");
+       throw invalid_argument("Driver::create");
 }
 
 } // namespace R2C2