X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FBit-MorseSignals.git;a=blobdiff_plain;f=lib%2FBit%2FMorseSignals%2FReceiver.pm;h=0dd41aa7b9c1a919be9f249cf74363bcdbb4397e;hp=42f6b4fcca68fefed9422077afbcaffb98c8899c;hb=ed888890547450e75030085fadb958c5ea2a6421;hpb=f90efd6aef2e807ed35c07341456ce727d6668bc diff --git a/lib/Bit/MorseSignals/Receiver.pm b/lib/Bit/MorseSignals/Receiver.pm index 42f6b4f..0dd41aa 100644 --- a/lib/Bit/MorseSignals/Receiver.pm +++ b/lib/Bit/MorseSignals/Receiver.pm @@ -15,11 +15,11 @@ Bit::MorseSignals::Receiver - Base class for Bit::MorseSignals receivers. =head1 VERSION -Version 0.01 +Version 0.02 =cut -our $VERSION = '0.01'; +our $VERSION = '0.02'; =head1 SYNOPSIS @@ -48,7 +48,7 @@ sub _check_self { =head2 C<< new [ done => $cb ] >> -L object constructor. With the C<'done'> option, you can specify a callback that will be triggered every time a message is completed, and in which C<$_[0]> will be the receiver object and C<$_[1]> the message received. +L object constructor. With the C<'done'> option, you can specify a callback that will be triggered every time a message is completed, and in which C<$_[0]> will be the receiver object and C<$_[1]> the message received. =cut @@ -111,6 +111,7 @@ sub push { if ($self->{len} >= 3) { my $type = 2 * vec($self->{buf}, 0, 1) + vec($self->{buf}, 1, 1); + $type = BM_DATA_PLAIN if vec($self->{buf}, 2, 1); @{$self}{qw/state type buf len/} = (3, $type, '', 0); }