my $inclHigh = trb_register_read(0xffff,0x43);
my $addresses= trb_register_read(0xffff,0x44);
my $hubbusy = trb_register_read(0xfffe,0x81);
+ my $hubrdooff = trb_register_read(0xfffe,0xc0);
my $portactive = trb_register_read(0xfffe,0x84);
my $hubbusy1 = trb_register_read_mem(0xfffe,0x4030,0,16);
my $serial = GetSerial($uids->{$addr},$hardware->{$addr}>>24&0xff);
#Busy
my $busy = $hubbusy->{$parent} & (1<<$p);
+ my $rdooff = ($hubrdooff->{$parent} & (1<<$p)) // 1;
+ $rdooff = 1 if $parent == 0;
my $hubval = $hubbusy2->{$parent}[$p] - $hubbusy1->{$parent}[$p];
$hubval += 2**32 if $hubval < 0;
$hubval /= 10E6;
$defaddr = sprintf("default address: %04x\nbroadcast fe%02x",$addresses->{$addr}>>16,$addresses->{$addr}&0xff);
}
- printf("<tr class=\"level level%i%s%s\"><td title=\"%s\"><div>%i</div>0x%04x<td title=\"0x%08x\">%s<td title=\"0x%08x%08x\n%s\">%s<td title=\"0x%08x\">%s<td>%.1f°C<td>%016x - %i<td %s>%s<td %s>%s\n",
+ printf("<tr class=\"level level%i%s%s%s\"><td title=\"%s\"><div>%i</div>0x%04x<td title=\"0x%08x\">%s<td title=\"0x%08x%08x\n%s\">%s<td title=\"0x%08x\">%s<td>%.1f°C<td>%016x - %i<td %s>%s<td %s>%s\n",
$layer,
($layer!=$lastlayer?' newlevel':' oldlevel'),
($busy?' busy':''),
+ ($rdooff?'':' rdooff'),
$defaddr,
$p,
$addr,