]> git.zerfleddert.de Git - rsbs2/commitdiff
fix boardstatus output
authorMichael Gernoth <michael@gernoth.net>
Sun, 8 Feb 2009 12:06:51 +0000 (13:06 +0100)
committerMichael Gernoth <michael@gernoth.net>
Sun, 8 Feb 2009 12:06:51 +0000 (13:06 +0100)
rsbs2.pl

index 7f5cc0f43dce141a07546bebb3e872c3b11d9fb4..17f33dc40e2eb5f7720e15abe3192ba4215f6777 100755 (executable)
--- a/rsbs2.pl
+++ b/rsbs2.pl
@@ -411,19 +411,21 @@ sub status {
        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 {
Impressum, Datenschutz