Skip to content

Commit

Permalink
Update Serial.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
TekuConcept authored Apr 19, 2017
1 parent 84feb04 commit be54e07
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,10 @@ Serial::Serial(std::string device) {
if((fd = open(device.c_str(), O_RDWR)) < 0) {
DMSG("Device failed to open... entering dummy mode.\n");
fd = 0;
} else {
if((fd = open(device.c_str(), O_RDWR)) < 0) {
DMSG("Device failed to open... entering dummy mode.\n");
fd = 0;
return;
}

configure();
return;
}

configure();
acknowledge();
}

Expand Down Expand Up @@ -192,4 +187,4 @@ void Serial::writeData(char* ptr, size_t size) {
#endif
}

#undef DMSG
#undef DMSG

0 comments on commit be54e07

Please sign in to comment.