Skip to content
This repository has been archived by the owner on Oct 29, 2020. It is now read-only.

Commit

Permalink
gpiotrace2html: Show changes in AF.
Browse files Browse the repository at this point in the history
  • Loading branch information
ato committed Oct 14, 2008
1 parent 335dd76 commit 649205e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions gpiotrace/gpiotrace2html
Expand Up @@ -22,10 +22,10 @@ def main():

print '<html><head><style>'
print '''
.level0dir0 { background: #999; }
.level0dir1 { background: #666; }
.level1dir0 { background: #99f; }
.level1dir1 { background: #33f; }
.level0dir0 { background: #999; color: white; }
.level0dir1 { background: #666; color: white; }
.level1dir0 { background: #99f; color: white;}
.level1dir1 { background: #33f; color: white; }
'''

Expand Down Expand Up @@ -53,8 +53,12 @@ def main():


print '<tr align="right"><td>%s <b>%d</b></td>' % (getname(gpio, row[0],names ), gpio)
lastaf = None
for level, dir, af in row:
print '<td class="level%ddir%d">&nbsp;&nbsp;</td>' % (level, dir)
if lastaf is None or lastaf == af:
print '<td class="level%ddir%d">&nbsp;</td>' % (level, dir)
else:
print '<td class="level%ddir%d">AF%d</td>' % (level, dir, af)

print '</tr>'

Expand Down

0 comments on commit 649205e

Please sign in to comment.