use result_t, move raw logging and dumping to Port and avoid permanent open/close on ofstream

This commit is contained in:
john30
2014-11-29 20:11:38 +01:00
parent 29f60af55c
commit 036036e626
+1 -1
View File
@@ -26,7 +26,7 @@ using namespace std;
int main ()
{
string dev("/dev/ttyUSB20");
Port port(dev, true);
Port port(dev, true, false, NULL, false, "", 1);
port.open();