]> cvs.zerfleddert.de Git - rsbs2/commitdiff
show BOARD_DESCRIPTION only once when patching
authorMichael Gernoth <michael@gernoth.net>
Thu, 29 Jan 2009 07:26:30 +0000 (08:26 +0100)
committerMichael Gernoth <michael@gernoth.net>
Thu, 29 Jan 2009 07:26:30 +0000 (08:26 +0100)
firmware.c

index da5635ad558430c79b38a77a2eabca2f0312bc5c..1542d39db53866804fd3a10d063df9b5b0f32864 100644 (file)
@@ -208,15 +208,12 @@ void handle_boarddescription(unsigned char *fw, int len, int patch)
                                continue;
                        }
 
-                       printf("0x%08x: BOARD_DESCRIPTION: ", pos-fw);
-                       print_boarddescription(pos);
-
                        if (patch) {
                                /* Enable ATX and relay power switching */
                                pos[22] |= 0x03;
-                               printf("0x%08x: BOARD_DESCRIPTION: ", pos-fw);
-                               print_boarddescription(pos);
                        }
+                       printf("0x%08x: BOARD_DESCRIPTION: ", pos-fw);
+                       print_boarddescription(pos);
 
                        break;
                }
Impressum, Datenschutz