mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 06:39:11 +00:00
Some tty changes and a lot of typos
git-svn-id: https://svn.fhem.de/fhem/trunk@244 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
2ffb9b2f15
commit
01ca906f4d
@ -424,8 +424,11 @@
|
||||
|
||||
- ==DATE== (4.5)
|
||||
- feature: further 01_FHEMWEB cleanup
|
||||
- feature: CUL support for FS20(r/w), FHT(readonly), KS300, EM
|
||||
- feature: CUL support for FS20(r/w), FHT(readonly), KS300 and EM
|
||||
- feature: list outputs the device attributes too
|
||||
- bugfix: rename bugs fixed
|
||||
- bugfix: better integration of ReadyFn (Windows), slight overall speedup
|
||||
- bugfix: Ignore/correct "type" casing when autoloading modules
|
||||
- bugfix: at is executed twice after a modify (rufus99, 2008-09-10)
|
||||
- feature: FHT internal modifications (better protocol understanding)
|
||||
- feature: add timestamp to inform
|
||||
|
@ -225,6 +225,7 @@ FHZ_Define($$)
|
||||
|
||||
my $name = $a[0];
|
||||
my $dev = $a[2];
|
||||
my $spec = $a[3];
|
||||
|
||||
$attr{$name}{savefirst} = 1;
|
||||
$attr{$name}{fhtsoftbuffer} = 0;
|
||||
@ -253,22 +254,26 @@ FHZ_Define($$)
|
||||
$po->stopbits(1);
|
||||
$po->handshake('none');
|
||||
|
||||
# This part is for some Linux kernel versions whih has strange default
|
||||
# settings. Device::SerialPort is nice: if the flag is not defined for your
|
||||
# OS then it will be ignored.
|
||||
$po->stty_icanon(0);
|
||||
#$po->stty_parmrk(0); # The debian standard install does not have it
|
||||
$po->stty_icrnl(0);
|
||||
$po->stty_echoe(0);
|
||||
$po->stty_echok(0);
|
||||
$po->stty_echoctl(0);
|
||||
if($spec && $spec eq "strangetty") {
|
||||
|
||||
# This part is for some Linux kernel versions whih has strange default
|
||||
# settings. Device::SerialPort is nice: if the flag is not defined for your
|
||||
# OS then it will be ignored.
|
||||
$po->stty_icanon(0);
|
||||
#$po->stty_parmrk(0); # The debian standard install does not have it
|
||||
$po->stty_icrnl(0);
|
||||
$po->stty_echoe(0);
|
||||
$po->stty_echok(0);
|
||||
$po->stty_echoctl(0);
|
||||
|
||||
# Needed for some strange distros
|
||||
$po->stty_echo(0);
|
||||
$po->stty_icanon(0);
|
||||
$po->stty_isig(0);
|
||||
$po->stty_opost(0);
|
||||
$po->stty_icrnl(0);
|
||||
}
|
||||
|
||||
# Needed for some strange distros
|
||||
$po->stty_echo(0);
|
||||
$po->stty_icanon(0);
|
||||
$po->stty_isig(0);
|
||||
$po->stty_opost(0);
|
||||
$po->stty_icrnl(0);
|
||||
$po->write_settings;
|
||||
|
||||
|
||||
|
@ -255,6 +255,7 @@ FHT_SetState($$$$)
|
||||
{
|
||||
my ($hash, $tim, $vt, $val) = @_;
|
||||
|
||||
$vt =~ s/^FHZ://;
|
||||
return "Undefined type $vt" if(!defined($c2b{$vt}));
|
||||
return undef;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user