Skip to content
Browse files

brmd.pl: stopbits 2 now needed for whatever reason

  • Loading branch information...
1 parent b93b27b commit c217e24269d641733bc4b79caf92ea6143c20959 @pasky pasky committed Feb 10, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 brmd/brmd.pl
View
8 brmd/brmd.pl
@@ -8,7 +8,7 @@
use POE;
use WWW::WolframAlpha;
-our $channel = "#brmlab";
+our @channels = ("#brmlab", "#brmstatus");
our $streamurl = "http://brmlab.cz/stream";
our $devdoor = $ARGV[0]; $devdoor ||= "/dev/serial/by-id/usb-FTDI_FT232R_USB_UART_A700e1qB-if00-port0";
our $devasign = $ARGV[1]; $devasign ||= "/dev/serial/by-id/usb-1a86_USB2.0-Serial-if00-port0";
@@ -197,7 +197,7 @@ sub serial_open {
$port->baudrate(9600);
$port->databits(8);
$port->parity("none");
- $port->stopbits(1);
+ $port->stopbits(2);
$port->handshake("none");
$port->write_settings();
return $handle;
@@ -590,7 +590,7 @@ sub irc_001 {
print "Connected to ", $irc->server_name(), "\n";
- $irc->yield( join => $channel );
+ $irc->yield( join => $_ ) for @channels;
}
sub irc_public {
@@ -671,7 +671,7 @@ sub topic_update {
}
if ($newtopic ne $topic) {
$topic = $newtopic;
- $irc->yield (topic => $channel => $topic );
+ $irc->yield (topic => $_ => $topic ) for @channels;
}
}

0 comments on commit c217e24

Please sign in to comment.
Something went wrong with that request. Please try again.