File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -457,14 +457,14 @@ namespace Device
457457 else if (option == " FLOWCONTROL" )
458458 {
459459 Util::Convert::toUpper (arg);
460- if (arg == " NONE" || arg == " 0 " )
460+ if (arg == " NONE" )
461461 flowcontrol = FlowControl::NONE;
462- else if (arg == " HARDWARE" || arg == " HW " || arg == " RTSCTS " || arg == " 1 " )
462+ else if (arg == " HARDWARE" )
463463 flowcontrol = FlowControl::HARDWARE;
464- else if (arg == " SOFTWARE" || arg == " SW " || arg == " XONXOFF " || arg == " 2 " )
464+ else if (arg == " SOFTWARE" )
465465 flowcontrol = FlowControl::SOFTWARE;
466466 else
467- throw std::runtime_error (" Serial: invalid flowcontrol option: " + arg + " . Valid options are NONE, HARDWARE, SOFTWARE." );
467+ throw std::runtime_error (" Serial: invalid flowcontrol option: \" " + arg + " \ " . Valid options are NONE, HARDWARE, SOFTWARE." );
468468 }
469469 else
470470 Device::Set (option, arg);
You can’t perform that action at this time.
0 commit comments