2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +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:
rudolfkoenig 2008-09-21 21:39:45 +00:00
parent 2ffb9b2f15
commit 01ca906f4d
3 changed files with 25 additions and 16 deletions

View File

@ -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

View File

@ -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,6 +254,8 @@ FHZ_Define($$)
$po->stopbits(1);
$po->handshake('none');
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.
@ -269,6 +272,8 @@ FHZ_Define($$)
$po->stty_isig(0);
$po->stty_opost(0);
$po->stty_icrnl(0);
}
$po->write_settings;

View File

@ -255,6 +255,7 @@ FHT_SetState($$$$)
{
my ($hash, $tim, $vt, $val) = @_;
$vt =~ s/^FHZ://;
return "Undefined type $vt" if(!defined($c2b{$vt}));
return undef;
}