Fix bad cable note
This commit is contained in:
parent
ef42b596d9
commit
8993b483a6
1 changed files with 6 additions and 6 deletions
|
|
@ -233,15 +233,15 @@ class DiskObj():
|
||||||
_color = COLORS[_c]
|
_color = COLORS[_c]
|
||||||
|
|
||||||
# 199/C7 warning
|
# 199/C7 warning
|
||||||
if str(k) == '199':
|
if str(k) == '199' and v['raw'] > 0:
|
||||||
_note = '(bad cable?)'
|
_note = '(bad cable?)'
|
||||||
|
|
||||||
# Attribute value
|
# Attribute value
|
||||||
_line += '{}{} {}{}'.format(
|
_line += '{c}{v} {YELLOW}{n}{CLEAR}'.format(
|
||||||
_color,
|
c=_color,
|
||||||
v['raw_str'],
|
v=v['raw_str'],
|
||||||
_note,
|
n=_note,
|
||||||
COLORS['CLEAR'])
|
**COLORS)
|
||||||
|
|
||||||
# Add line to report
|
# Add line to report
|
||||||
report.append(_line)
|
report.append(_line)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue