From e3935c031ec63bcd7d5bacbff67f0fdadc6c20e0 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Tue, 30 Aug 2011 23:18:01 +0200 Subject: [PATCH] Fix manual status change desyncing arduino --- brmd/brmd.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brmd/brmd.pl b/brmd/brmd.pl index 6c97d25..d774acb 100755 --- a/brmd/brmd.pl +++ b/brmd/brmd.pl @@ -116,7 +116,7 @@ sub _start { Handle => serial_open($devdoor), Filter => POE::Filter::Line->new( InputLiteral => "\x0A", # Received line endings. - OutputLiteral => "\x0A", # Sent line endings. + OutputLiteral => "", # Sent line endings. ), InputEvent => "serial_input", ErrorEvent => "serial_error", @@ -396,7 +396,7 @@ sub web_brmstatus_switch { my $q = new CGI($request->content); my $nick = $q->param('nick'); - my $newstatus = not $status; + my $newstatus = 0 + not $status; foreach (@{$self->{observers}}) { $poe_kernel->post($_, 'status_update', $newstatus, 'web', $nick); }