Commit 8d97e5f2 authored by Pierre NARVOR's avatar Pierre NARVOR
Browse files

[tests] Added device as parameter in driver_test

parent 126d6710
......@@ -17,10 +17,13 @@ narval::seatrac::messages::Status get_next_status(SeatracDriver& seatrac)
return status;
}
int main()
int main(int argc, char** argv)
{
const char* device = "/dev/narval_usbl";
if(argc > 1) device = argv[1];
AsyncService service;
SeatracDriver seatrac(service.io_service(), "/dev/narval_usbl");
SeatracDriver seatrac(service.io_service(), device);
seatrac.enable_io_dump();
service.start();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment