Commit 84b6475f authored by Wesley W. Terpstra's avatar Wesley W. Terpstra

At least warn foolish users

parent dff463fd
......@@ -31,6 +31,9 @@ RawRabbit::RawRabbit(Interconnect* ic, const std::string& device)
write (*addMasterPort("write", uint32_pinout)),
effect (*addSlavePort ("effect", command_pinout)) {
fd = open(device.c_str(), O_RDWR);
if (fd == -1) {
std::cerr << "!!!!! Cannot open " << device << ". Communication will go nowhere. !!!!!" << std::endl;
}
}
RawRabbit::~RawRabbit() {
......
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