Small fix for sysServices ("layers") check

This commit is contained in:
Jeroen van Ingen
2010-07-26 14:31:41 +00:00
parent e5f948acda
commit 665f33a482

View File

@@ -1172,7 +1172,7 @@ sub device_type {
# Some devices don't implement sysServices, but do return a description.
# In that case, log a warning and continue.
if ( !$layers ) {
if ( $layers eq '00000000' ) {
if ($desc ne 'undef') {
carp("Device doesn't implement sysServices but did return sysDescr. Might give unexpected results.\n") if $info->debug();
} else {