(setq driver-version (match-string 1))
(setq bios-version (match-string 2))
(setq tem (string-to-number (match-string 3) 16))
- (if (not (logand tem 2))
+ (if (zerop (logand tem 2))
(setq bios-interface "not supported")
(setq bios-interface "enabled")
- (cond ((logand tem 16) (setq bios-interface "disabled"))
- ((logand tem 32) (setq bios-interface "disengaged")))
+ (cond ((/= (logand tem 16) 0) (setq bios-interface "disabled"))
+ ((/= (logand tem 32) 0) (setq bios-interface "disengaged")))
(setq tem (string-to-number (match-string 4) 16))
(cond ((= tem 0) (setq line-status "off-line"))
((= tem 1) (setq line-status "on-line"))