Fix serial tty setup, include matches in prompt event
This commit is contained in:
@@ -27,7 +27,7 @@ class SerialFactory
|
||||
$deferred = new Deferred();
|
||||
|
||||
Loop::futureTick(static function () use ($device, $baud, $bits, $parity, $stop, $deferred) {
|
||||
$cmd = "stty -F ".escapeshellarg($device)." ".$baud." ".$parity->value." ".escapeshellarg("cs".$bits)." ".($stop==1?"-cstopb":"cstopb")." -echo cbreak min 0 time 0";
|
||||
$cmd = "stty -F ".escapeshellarg($device)." ".$baud." ".$parity->value." ".escapeshellarg("cs".$bits)." ".($stop==1?"-cstopb":"cstopb")." -echo -icrnl cbreak min 0 time 0";
|
||||
//echo $cmd."\n";
|
||||
exec($cmd);
|
||||
$fd = fopen($device, "a+");
|
||||
|
||||
Reference in New Issue
Block a user