print "COM redirection:\t" . (($bs & 0x100000) ? "ON" : "OFF") . "\n";
print "UART redirect:\t\t" . (($bs & 0x200000) ? "ON" : "OFF") . "\n";
print "UART redirect pending:\t" . (($bs & 0x400000) ? "TRUE" : "FALSE") . "\n";
+ print "Hex BoardStatus:\t${boardstatus}\n";
my $fws = hex ($boardfwstatus);
print "FW status:\t\t";
if ($fws == 3 || $fws == 32771) {
- print "WAITING\n";
+ print "WAITING";
} else {
- print "DONE\n";
+ print "DONE";
}
+ print " (${boardfwstatus})\n";
if (($fws & 0x8080) || ($fws & 0x80)) {
printf("FW error:\t\t0x%02x\n", ($fws & 0xff));
}
- print "boardstatus:\t\t${boardstatus}\n";
- print "boardfwstatus:\t\t${boardfwstatus}\n";
- print "fw upgrade progress:\t${boardfwprogress}\n";
+ if ($fws != 0) {
+ print "FW upgrade progress:\t${boardfwprogress}\n";
+ }
}
sub login {