From: Craig S. <csc...@ya...> - 2004-03-25 03:44:24
|
I ran into a snag with the new version when using a Lynx10PLC through an mh proxy. This might also have been broken in 2.87 since I didn't load that version. The problem occurs due to the new handling of an x10 module type to dynamically handle dim levels. The fix is as follows: in Lynx10PLC.pm/send_plc: #return unless ( 3 == @_ ); return unless ( @_ > 1 and @_ < 4); This is required since there will be 2 args if no module_type is specified and 3 if one is. in proxy_client_server.pl, need some lynx10 handling: elsif ($function eq 'lynx10plc') { my $function2 = shift @data; if ($function2 eq 'send_plc') { &Lynx10PLC::send_plc($main::Serial_Ports{Lynx10PLC}{object},@data); } elsif ($function2 eq 'readDeviceInfo') { &Lynx10PLC::readDeviceInfo($main::Serial_Ports{Lynx10PLC}{object},$data[0]); } } __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html |